-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom tags for spans of net/httpclient #2102
Comments
@tkuenzle I think it's fine to do the suggested feature with the suggested solution. |
I guess |
Updates #2102 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Updates #2102 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
|
Updates #2102 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Also we need to keep opentracing/specification#163 in mind before investing more into it, I've created #2104 |
Thanks for the POC @AlexanderYastrebov. Looks a lot easier than I assumed. It does still feel like a workaround and not like a nice solution though 😄 But especially in the light of opentracing being deprecated I guess it makes sense not to add more opentracing specific options 👍 |
Updates #2102 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de> Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
@tkuenzle Thank you, then I am closing this. |
Is your feature request related to a problem? Please describe.
We are using the
skipper/net/httpclient
for quite a few services due to it's out-of-the-box support for opentelemetry. Recently a new requirement was raised, that we need to tag all outgoing client spans with specific tags, i.e.peer.service
andpeer.hostname
. Currently,skipper/net/httpclient
does only support very few tags, namelykind
,component
,http.url
andhttp.method
of which onlycomponent
is configurable. We would like to be able to pass any additional tags that we need.Describe the solution you would like
We would like to have a new option called sth like
OpentracingTags
orCustomOpentracingTags
of typeopentracing.Tags
. These would be added to each span in addition to the previously supported ones.Describe alternatives you've considered (optional)
Alternatively we could allow passing some kind of a hook as an option with the span as argument, so that the span could be modified in any way.
Would you like to work on it?
Yes
The text was updated successfully, but these errors were encountered: