parent span with error when child span with record_exception=False and set_status_on_exception=False #3252
Replies: 2 comments 1 reply
-
Sorry, what do you mean with span3? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks @0x6f677548, this is a good question. I find it easier to discuss this with some code, so I opened #3356, moving the discussion there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I realized that even when a child span is initialized with record_exception=False and set_status_on_exception=False, the parent span still serializes the exception and span attribute error=True.
Sample code (for the sake of simplicity, span1 has no code block,
Jaeger screenshot sample:
Is there any way to avoid this? I can circumvent the triage of these events with another attribute in span1, but span2 is still serializing the exception, which is a performance penalty.
I am still new to open telemetry, so if I am challenging some best practices on exception handling, please let me know.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions