shippingservice: add http client request span#610
shippingservice: add http client request span#610cartersocha merged 6 commits intoopen-telemetry:mainfrom
Conversation
The commit adds new http client span for outgoing calls to `/getquote` endpoint of quoteservice via the `reqwests` client middleware instrumentation. This provides a bit of the server/client tasks separation visibility as well as enables span pairing with the downstream quoteservice server span. The instrumentation uses the available `reqwests-tracing` and `tracing-opentelementry` crates.
|
|
julianocosta89
left a comment
There was a problem hiding this comment.
Thanks for the contribution @styblope!
A lot of new attributes and events were added automatically. Good one!
Could you also update the doc for the Shipping Service to reflect your changes?
https://github.com/open-telemetry/opentelemetry-demo/blob/main/docs/services/shippingservice.md
|
Hey @GaryPWhite, as you were the main responsible for the |
GaryPWhite
left a comment
There was a problem hiding this comment.
this is really cool. I want to point out that this is a way of using even downstream dependencies in a really adept way and that's a massive contribution of SME to this project. Thanks much for your input here.
left some comments but by no means blocking.
* shippingservice: Add http client request span The commit adds new http client span for outgoing calls to `/getquote` endpoint of quoteservice via the `reqwests` client middleware instrumentation. This provides a bit of the server/client tasks separation visibility as well as enables span pairing with the downstream quoteservice server span. The instrumentation uses the available `reqwests-tracing` and `tracing-opentelementry` crates. * update shippingservice docs * update changelog * update doc section position * apply syntax change suggestion Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
* shippingservice: Add http client request span The commit adds new http client span for outgoing calls to `/getquote` endpoint of quoteservice via the `reqwests` client middleware instrumentation. This provides a bit of the server/client tasks separation visibility as well as enables span pairing with the downstream quoteservice server span. The instrumentation uses the available `reqwests-tracing` and `tracing-opentelementry` crates. * update shippingservice docs * update changelog * update doc section position * apply syntax change suggestion Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
* shippingservice: Add http client request span The commit adds new http client span for outgoing calls to `/getquote` endpoint of quoteservice via the `reqwests` client middleware instrumentation. This provides a bit of the server/client tasks separation visibility as well as enables span pairing with the downstream quoteservice server span. The instrumentation uses the available `reqwests-tracing` and `tracing-opentelementry` crates. * update shippingservice docs * update changelog * update doc section position * apply syntax change suggestion Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
Changes
I propose to add a dedicated http client span for the outgoing calls to
/getquote. This change will provide tracing separation between the server part and the downstream requests client part inside shippingservice. A client span can also better match with the peer quoteservice server span. The client middleware-based instrumentation uses the availablereqwests-tracingandtracing-opentelementrycrates.Merge Requirements
For new features contributions please make sure you have completed the following
essential items:
CHANGELOG.mdupdated to document new feature additions