Skip to content

fix(otel): NoOpSpan updates scope#1834

Merged
Zylphrex merged 2 commits intomasterfrom
txiao/fix/no-op-span-updates-scope
Jan 17, 2023
Merged

fix(otel): NoOpSpan updates scope#1834
Zylphrex merged 2 commits intomasterfrom
txiao/fix/no-op-span-updates-scope

Conversation

@Zylphrex
Copy link
Copy Markdown
Member

When using otel as the instrumentor, the NoOpSpan needs to update the scope when it's used as a context manager. If it does not, then this differs from the usual behaviour of a span and the end user may start seeing an unexpected None on the scope.

When using otel as the instrumentor, the NoOpSpan needs to update the scope when
it's used as a context manager. If it does not, then this differs from the usual
behaviour of a span and the end user may start seeing an unexpected `None` on
the scope.
@Zylphrex Zylphrex merged commit 1445c73 into master Jan 17, 2023
@Zylphrex Zylphrex deleted the txiao/fix/no-op-span-updates-scope branch January 17, 2023 18:59
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