Skip to content

CORE-1223: bump all python instrumentations to 0.62b1 - last py3.9 instrumentation#213

Merged
natyharary merged 2 commits into
mainfrom
core-1223-update-python-instrumentation-for-latest-py39
Jul 5, 2026
Merged

CORE-1223: bump all python instrumentations to 0.62b1 - last py3.9 instrumentation#213
natyharary merged 2 commits into
mainfrom
core-1223-update-python-instrumentation-for-latest-py39

Conversation

@natyharary

@natyharary natyharary commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Changelog entry: Does this PR introduce a user-facing bug fix, feature, dependency update, or breaking change??

Bump all upstream python instrumentations to the latest versions that support py3.9 (0.62b1)

@natyharary
natyharary requested a review from tamirdavid1 July 5, 2026 12:20
encoded_span = original_encode_span(sdk_span)
# THE FIX: fold the W3C trace flags into Span.flags (PR #4761).
encoded_span.flags |= int(sdk_span.get_span_context().trace_flags)
span_context = sdk_span.get_span_context()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you explain this please?

@natyharary natyharary Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ty gave a warning on that: get_span_context() can return SpanContext or None.
if span_context is None then calling span_context.trace_flags will result in an exception and kill the entire process.

so we check for nullability, and if not null... we proceed

@natyharary
natyharary requested a review from tamirdavid1 July 5, 2026 16:44
@natyharary
natyharary merged commit 1a8e3f4 into main Jul 5, 2026
17 of 18 checks passed
@natyharary
natyharary deleted the core-1223-update-python-instrumentation-for-latest-py39 branch July 5, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants