-
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
Specify tracing span kind on creation #3039
Conversation
@@ -456,7 +456,6 @@ func (ac *admissionControl) startSpan(ctx context.Context) (span opentracing.Spa | |||
if parent != nil { | |||
span = ac.tracer.StartSpan(admissionControlSpanName, opentracing.ChildOf(parent.Context())) | |||
ext.Component.Set(span, "skipper") | |||
ext.SpanKind.Set(span, "shedder") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if we really need non-standard kind here so decided to drop it.
And this would break in OpenTelemetry, see
https://github.com/open-telemetry/opentelemetry-go/blob/9656d0afa72646101e859bf8a1c6d05b73ee094d/trace/trace.go#L460-L474
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check if we have streams that might select it and propose a change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found one that also uses operation IN ("admission_control")
which should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reached out to the owner and this was fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this to the release notes, too?
I don't know who will hit by that but that we do tell about.
99fea88
to
e05c8b8
Compare
let's land it, no? |
👍 |
e05c8b8
to
c3d7298
Compare
Rebased and fixed span creation added by #3034 |
OpenTelemetry-OpenTracing bridge span kind can not be changed after creation, see open-telemetry/opentelemetry-go#3953 The workaround is to specify span kind on creation which works for both Open Tracing and Open Telemetry bridge spans. For #2104 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
c3d7298
to
406a3ff
Compare
👍 |
1 similar comment
👍 |
Use setTag helper to enable tag exclusion This is follow up fix for #3039 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Use setTag helper to enable tag exclusion This is follow up fix for #3039 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
OpenTelemetry-OpenTracing bridge span kind can not be changed after creation, see open-telemetry/opentelemetry-go#3953 The workaround is to specify span kind on creation which works for both Open Tracing and Open Telemetry bridge spans. Note that this change removes non-standard "shedder" kind from spans created by `admissionControl` filter. Use operation name "admission_control" to query its spans instead if needed. For zalando#2104 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de> Signed-off-by: Janardhan Sharma <janardhan.sharma@zalando.de>
Use setTag helper to enable tag exclusion This is follow up fix for zalando#3039 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
OpenTelemetry-OpenTracing bridge span kind can not be changed after creation, see open-telemetry/opentelemetry-go#3953
The workaround is to specify span kind on creation which works for both Open Tracing and Open Telemetry bridge spans.
For #2104