Skip to content

fix(tracer): support converting OpenTelemetry parent span context - #904

Open
arjun-rajappa wants to merge 2 commits into
mainfrom
fix/support-otel-parent-span-context
Open

arjun-rajappa wants to merge 2 commits into
mainfrom
fix/support-otel-parent-span-context

Conversation

@arjun-rajappa

Copy link
Copy Markdown
Contributor

Allow OpenTelemetry SpanContext instances in start_span by converting valid non-Instana parent contexts into Instana SpanContext objects instead of raising a TypeError. If the context is invalid, fall back to None. Include debug logs for parent context conversion and invalid context resets.

Allow OpenTelemetry SpanContext instances in start_span by converting
valid non-Instana parent contexts into Instana SpanContext objects instead
of raising a TypeError. If the context is invalid, fall back to None.
Include debug logs for parent context conversion and invalid context resets.

Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@arjun-rajappa
arjun-rajappa requested a review from a team as a code owner September 17, 2026 05:07
@pvital pvital added bug fix OTel OpenTelemetry compatibility. labels Sep 17, 2026

@pvital pvital left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arjun-rajappa, can you add specific start_span test cases with context arguments with OTel and Instana SpanContext? You can use the Pytest parametrization for that.

… Context

Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix OTel OpenTelemetry compatibility.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants