Skip to content

wip: otel instrumentation enhancements#20816

Draft
adrianlyjak wants to merge 4 commits intomainfrom
adrian/otel
Draft

wip: otel instrumentation enhancements#20816
adrianlyjak wants to merge 4 commits intomainfrom
adrian/otel

Conversation

@adrianlyjak
Copy link
Contributor

  1. Add shutdown method to destroy all spans, to be e.g. called on SIGTERM to close out spans
  2. add generic export/import dict methods for passing trace context across a data boundary (network, retry).
  3. adjust otel integration so that tags set attributes
  4. Adjust otel integration so that the operation name is a non-unique value, (not the span full id), so you can search on it, etc. This takes the same approach as phoenix/openinference does in their integration with llama_index, but perhaps in the future it might make sense to push more otel concepts into the core, such as name here.

Example crash/recover running a durable workflow and a killed pod:

image

shutdown error details, tags as attributes (auto prefixed with llamaindex. to not overlap. Can set tags like foo.bar and it will not be prefixed, and assume you know what you are doing. Might be able to use to support using semantic conventions in the future)

image

Search on name attribute
image

@adrianlyjak adrianlyjak marked this pull request as draft February 28, 2026 00:55
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant