Skip to content

Closing and exporting all spans on panic (when panic=abort)? #542

Open
@joshtriplett

Description

@joshtriplett

I'm using tracing-opentelemetry. From what I understand, spans rely on Drop implementations to close, and until the span is closed it won't be shipped off. I'm currently using panic=abort for various reasons. I'd love to have a global method that I can call from a panic handler that will close and export all spans before exiting, to make sure enough tracing information has been sent out to debug the panic.

Metadata

Metadata

Assignees

Labels

A-traceArea: issues related to tracingquestionFurther information is requestedrelease:required-for-stableMust be resolved before GA release, or nice to have before GA.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions