Skip to content

[blocking] description should only be set when status_code is set to StatusCode.ERROR #1784

@rakshith91

Description

@rakshith91

Describe your environment
Python 3.7

Steps to reproduce

from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor, ConsoleSpanExporter

trace.set_tracer_provider(TracerProvider())
tracer = trace.get_tracer(__name__)
span_processor = BatchSpanProcessor(ConsoleSpanExporter())
trace.get_tracer_provider().add_span_processor(span_processor)

with tracer.start_as_current_span("hello"):
    print("Hello, World!")

What is the actual behavior?
Getting an error which is breaking our builds.

description should only be set when status_code is set to StatusCode.ERROR

What is the expected behavior?
no such warning should occur and would expect to just see the traces.

Additional context
Is it possible to hotfix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions