Repository navigation
OxTelemetry - integration of ox, ox flows with OpenTelemetry - #527
Open
pawelsadlo wants to merge 19 commits into
Open
pawelsadlo wants to merge 19 commits into
pawelsadlo wants to merge 19 commits into
Conversation
Member
|
Thanks, some remarks:
|
Member
|
Ah and finally - did you try reviewing your code with Claude/Codex/Cursor? |
Author
will do
yes, for integration with third party libs relying on automatic otel instrumentation that may start spans within our span |
Member
Bue doesn't |
Author
|
nope, span must be set explicitly as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provides some basic integration for open telemetry tracing via one
OxTracinginterface.Implementation lives in:
AutoCloseableSpan, which contains created span and logic to finalize span (by closing it and bringing back previous otel context). its unsafe because user is expected to finalize span properly, even in case of errors and also should handle correct order of closing spans in case more spans are started by this method, makes opened span a child of current ongoing spanProvided
nativeimplementation relies onox.otel.context.PropagatingVirtualThreadFactoryas a open telemetry context propagation mechanism between threads.note:
this wont work out of the box with
ComputeIntensivenote2:
need to tidy up some tests yet