Skip to content

Add "otel.status_description" in WithSpan annotation implementation  #6710

Open
@changliu-wk

Description

@changliu-wk

Is your feature request related to a problem? Please describe.
When using WithSpan annotation, if there is an exception thrown, the annotation has set the "otel.status_code", but it didn't set the "otel.status_description".

This is important, because the enduser would like to know what cause the error.

Describe the solution you'd like
Set "otel.status_description" when otel.status_code is set as ERROR.

Describe alternatives you've considered
I didn't find the specification about how to give status description. But I see .NET has this, and my commercial endpoint also ask this attributes.

Additional context
#6525
I am able to set up a server and a client, and a local collector, saw the detailed span output. Status message : is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked on specificationNeeds specification work before this can be resolvedenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions