-
Notifications
You must be signed in to change notification settings - Fork 948
Description
Is your feature request related to a problem? Please describe.
If span has exception (recordException) with few wrapped cause and long stack traces (some spring exception), the string representation in tracing system (tag exception.stacktrace) has "caused by, root cause last" structure. This is sometimes inconvenient. In log we use logback %rEx directive for "wrapped by, root cause first" stack trace structure (like this). Also in logging with "wrapped by, root cause first" we can painlessly truncate wery large stack traces - root cause does not truncated. But with "caused by, root cause last" structure it is not.
Describe the solution you'd like
It would be nice to be able to customize exception stack trace to string conversion in open telemetry by user. Inject users printStackTrace implementation. Or have open telemetry settings like logback %rEx and stack trace size limit.