Skip to content

Conversation

@ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Jun 26, 2023

This tries to clarify the behavior that should happen when there is an exception raised in a child span which has been started with record_exception and set_status_on_exception to False.

See #3252.

@ocelotl ocelotl self-assigned this Jun 26, 2023
@ocelotl ocelotl requested a review from a team June 26, 2023 10:25
@ocelotl ocelotl added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 26, 2023
@ocelotl
Copy link
Contributor Author

ocelotl commented Jun 26, 2023

For the time being, this PR does not change anything in the SDK, it only adds a test case that verifies the current behavior.

This is what I coud find in the spec:

An exception SHOULD be recorded as an Event on the span during which it occurred. The name of the event MUST be "exception".

(Emphasis is mine)

I'll bring this to the next SIG for discussion.

ocelotl added 2 commits July 5, 2023 12:16
This tries to clarify the behavior that should happen when there is an
exception raised in a child span which has been started with
record_exception and set_status_on_exception to False.
@ocelotl ocelotl force-pushed the discussion_3252 branch from 96cd40c to 7d59e55 Compare July 5, 2023 10:24
@ocelotl ocelotl enabled auto-merge (squash) July 5, 2023 10:30
@ocelotl ocelotl disabled auto-merge July 5, 2023 10:31
@ocelotl ocelotl enabled auto-merge (squash) July 5, 2023 13:14
@ocelotl ocelotl merged commit 3f459d3 into open-telemetry:main Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants