How to automatically record exception information? #6382
-
Exceptions are thrown in a method, but the details of the exceptions, such as message, line of code, etc., are not recorded in span, can they be automatically recorded when using automatic instrumentation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @tuhao1020 , |
Beta Was this translation helpful? Give feedback.
Hey @tuhao1020 ,
Try using a span exporter other than Zipkin - both Jaeger and OTLP preserve full exception details.
In OpenTelemetry, an exception is recorded as a span event. The equivalent of an event in Zipkin is an annotation; however, Zipkin. annotations cannot have attributes. That's why during conversion to Zipkin any span event attributes (exception message, exception stack trace, etc.) are just dropped.