Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rakshith91 opened this issue Apr 20, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@rakshith91
Copy link

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?

@rakshith91 rakshith91 added the bug Something isn't working label Apr 20, 2021
@lzchen
Copy link
Contributor

lzchen commented Apr 20, 2021

Already resolved with; #1721

@lzchen lzchen closed this as completed Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants