Skip to content

Tornado, getting "description should only be set when status_code is set to StatusCode.ERROR" for all spans #500

@tmr-prestolabs

Description

@tmr-prestolabs

Describe your environment
Python 3.8.2
Platform: NAME="CentOS Linux", VERSION="8 (Core)"
Dependencies:

opentelemetry-api==1.2.0
opentelemetry-exporter-jaeger==1.2.0
opentelemetry-exporter-jaeger-proto-grpc==1.2.0
opentelemetry-exporter-jaeger-thrift==1.2.0
opentelemetry-exporter-otlp==1.2.0
opentelemetry-exporter-otlp-proto-grpc==1.2.0
opentelemetry-instrumentation==0.21b0
opentelemetry-instrumentation-tornado==0.21b0
opentelemetry-proto==1.2.0
opentelemetry-sdk==1.2.0
opentelemetry-semantic-conventions==0.21b0
opentelemetry-util-http==0.21b0

Steps to reproduce

  • Run the module, which contains the following code:
# this is within one module of my code
...
from opentelemetry.instrumentation import tornado as tornado_instrument
...
tornado_instrument.TornadoInstrumentor().instrument()
...
logging.info(f'Version of Tornado instrumentation: {tornado_instrument.__version__}')
...
  • Make a request, which is handled successfully, to create new spans and traces.
  • Check that request has been handled successfully (200 code)

What is the expected behavior?
Logs have not to output any problems.

What is the actual behavior?
Logs output the following:
Version of Tornado instrumentation: 0.21b0
status.py:57] description should only be set when status_code is set to StatusCode.ERROR
and it happens for every span.

Additional context
I am not using any additional automatic or manual instrumentation. I don't set the description in any part of my code.

I am not sure it it's the issue on my side (dependency mismanagement) or if the code is not working as expected. I would like to get some help with that.
Whenever I make a request, status.py:57] description should only be set when status_code is set to StatusCode.ERROR is logged, so the logs get filled very quickly with this useless (not expected) information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions