-
Notifications
You must be signed in to change notification settings - Fork 753
feat: implement on ending in span processor #4775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
95797e2
to
41c988d
Compare
parent_context: The parent context of the span that just started. | ||
""" | ||
|
||
def on_ending(self, span: "Span") -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is still in development in the specs we don't want to make it a public symbol yet, so this can be _on_ending
. The same applies to the other methods as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks
CHANGELOG.md
Outdated
([#4755](https://github.com/open-telemetry/opentelemetry-python/pull/4755)) | ||
- logs: extend Logger.emit to accept separated keyword arguments | ||
([#4737](https://github.com/open-telemetry/opentelemetry-python/pull/4737)) | ||
- feat: implement on ending in span processor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be moved to unreleased
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird, in my local it was put properly then changed when I pushed. Might've been the pre-commit hook. In any case, fixed, thanks
ed2fa0c
to
708f178
Compare
Description
SpanProcessor.onEnding() Specification
This PR serves to implement the in-development feature
onEnding()
for the span processor. This will allow users to make modifications to the span before it becomes immutable whenonEnd()
is reached.Loosely following implementation in Java repo: open-telemetry/opentelemetry-java#6367
Fixes: N/A
Type of change
New feature (non-breaking change which adds functionality)
How Has This Been Tested?
onEnding
onStart
andonEnd
)Span.End()
)Does This PR Require a Contrib Repo Change?
No.
Checklist: