-
Couldn't load subscription status.
- Fork 293
CP-48995: Instrument XenAPI.py to submit a traceparent
#5639
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
CP-48995: Instrument XenAPI.py to submit a traceparent
#5639
Conversation
4c3dd6e to
90a4d9f
Compare
9e820b3 to
902d4c0
Compare
|
Patrick here, I think the try except around the imports is fine, but I don't think the function definition for |
3be81ad to
ce28236
Compare
|
BVT 198454 with and without tracing enabled. |
ce28236 to
3beae1f
Compare
Instrument `XenAPI.py` to submit the current traceparent back into xapi if it can import `opentelemetry`. Currently, we don't see the traces of `sm` calling back to `xapi` using `XenAPI.py`. This will instrument `XenAPI.py` to pass a traceparent into `xapi` when opentelemetry is available. Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
3beae1f to
e5bb639
Compare
|
199185 BVT+BST with all components enabled passed. |
| # are not overridden and will be the defined no-op functions. | ||
| span, patch_module = _init_tracing(observer_configs, observer_config_dir) | ||
|
|
||
| # If tracing is now operational, explicity set "OTEL_SDK_DISABLED" to "false". |
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.
"now" or "not"?
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.
Oh I see, double negative.
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.
The double negation is a bit annoying, but I wanted to follow the opentelemetry standard...
|
199182 BVT+BST with tracing disabled passed. |
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.
This is only implemented for connections to the unix socket, right?
|
Yes, only for connections to the unix socket. Main reason is to see SM calling back into xapi. I am addressing the others separately here #5672. |
Instrument
XenAPI.pyto submit the current traceparent back into xapi if it can importopentelemetry.Currently, we don't see the traces of
smcalling back toxapiusingXenAPI.py. This will instrumentXenAPI.pyto pass a traceparent intoxapiwhen opentelemetry is available.