Skip to content

OpenCensus shim drops status description when converting to OpenTelemetry #8508

Description

@thswlsqls

Describe the bug

OpenTelemetrySpanImpl.setStatus(io.opencensus.trace.Status) in opencensus-shim maps only the status code (OK/ERROR) and ignores Status.getDescription(). An OpenCensus status such as Status.UNKNOWN.withDescription("connection refused") reaches OpenTelemetry exporters as an ERROR with no description, so the error reason is lost.

Steps to reproduce

Set an OpenCensus span status that carries a description through the shim, then inspect the exported OpenTelemetry span status.

What did you expect to see?

The OpenCensus status description preserved on the OpenTelemetry span status.

Additional context

The sibling overload setStatus(StatusCode, String) already forwards a description to the OpenTelemetry span; only the OpenCensus conversion path discards it. opencensus-shim is an alpha migration bridge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions