Skip to content

chore: Inline span streaming branch of tracing shims in monitors.consumers - #124688

Merged
alexander-alderman-webb merged 3 commits into
masterfrom
webb/crons/remove-tracing-shim-2
Oct 9, 2026
Merged

alexander-alderman-webb merged 3 commits into
masterfrom
webb/crons/remove-tracing-shim-2

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Inline the branches of utils.tracing.start_span(), utils.tracing.trace(), utils.tracing.set_span_tag() and utils.tracing.set_span_data() that run when the streaming trace lifecycle is enabled.

Since edfb641 the streaming trace lifecycle is always enabled.

Add repr() around the second argument to StreamedSpan.set_attribute() when mypy complains. Calling repr() is the existing runtime fallback in the SDK.

Set attributes in the attributes parameter to traces.start_span() instead of calling StreamedSpan.set_attribute() where reasonable.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 17, 2026
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/crons/remove-tracing-shim-2 branch from c6c0808 to 089a15f Compare September 17, 2026 09:46
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/crons/remove-tracing-shim-2 branch from 089a15f to 8a4a02f Compare September 22, 2026 12:04
@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review September 22, 2026 12:04
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 22, 2026 12:04
@alexander-alderman-webb
alexander-alderman-webb merged commit 85bb92b into master Oct 9, 2026
66 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/crons/remove-tracing-shim-2 branch October 9, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants