Broken Kubernetes instrumentation #2400
Unanswered
mateuszrzeszutek
asked this question in
Q&A
Replies: 1 comment 1 reply
-
First, I think this should be a proper issue, not a discussion :) Second, IMO from the modelling POV the pair Kubernetes client/OkHttp is the same as AWS SDK/http client. Meaning that Kubernetes is the higher level API and it should create a CLIENT span with proper semantics of the operation. OkHttp then should detect this and backoff. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed that our Kubernetes instrumentation is completely broken (and not only because of #2356). It uses an OkHttp
Interceptor
to wrap the HTTP call with a Span - the problem is, the Kubernetes client interceptor will always run after the OkHttp interceptor (added by the okhttp3 instrumentation). And since the Kubernetes one doesn't check if aCLIENT
span is in context we'd get CLIENT->CLIENT span hierarchy (if the propagation wasn't broken 😭 ).Anyway, here are a few ideas on how to solve that:
ApiClient
instead to get a higher-level INTERNAL span;WDYT?
Beta Was this translation helpful? Give feedback.
All reactions