Skip to content

Exception stack trace to string conversion customization #5187

@alex-kormukhin

Description

@alex-kormukhin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions