-
Notifications
You must be signed in to change notification settings - Fork 720
Open
Labels
area: instrumentationRelated to an instrumentation packageRelated to an instrumentation packagebugSomething isn't workingSomething isn't workinginstrumentation: otelmux
Description
Description
When a panic occurs in a request, an exception event is created, but the exception.stacktrace attribute isn't set.
According to the otel spec on exceptions, the exception.stacktrace attribute SHOULD be set. Currently it isn't, and I haven't been able to find a way to have it included.
Environment
- OS: macOS
- Architecture: arm64
- Go Version: 1.22.0
otelmuxversion: 0.48.0
Steps To Reproduce
- Use the otelmux middleware
- Call an end-point that panics
- See that the trace created contains an
exceptionevent, with nostacktraceattribute
Expected behavior
I would expect the exception event to include the stacktrace. I see how this may not always be desired, so an alternative to always including it, could be a way to explicitly tell the middleware to include it.
makeavish
Metadata
Metadata
Assignees
Labels
area: instrumentationRelated to an instrumentation packageRelated to an instrumentation packagebugSomething isn't workingSomething isn't workinginstrumentation: otelmux
Type
Projects
Status
Needs triage