Skip to content

Investigate a RecordException like method for an API Span #1104

@MrAlias

Description

@MrAlias

The specification has added a RecordException method to the API Span. This is to record things like a Go panic as a Span event.

We currently only have a RecordError method on the Span. This method is not something specified in the specification and doesn't seem suited to record a runtime.Stack.

Should the RecordError method be removed?

Should we add a method that helps in panic recovery? Possibly something that can be deferred and adds an event if a panic is occuring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tracePart of OpenTelemetry tracingpkg:APIRelated to an API package

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions