opentelemetry-python-contrib icon indicating copy to clipboard operation
opentelemetry-python-contrib copied to clipboard

opentelemetry-instrumentation-asgi is extremely noisy

Open zacps opened this issue 1 year ago • 4 comments

Describe your environment Potentially relevant python package versions:

fastapi==0.95.2
opentelemetry-distro==0.43b0
opentelemetry-exporter-otlp==1.22.0
opentelemetry-instrumentation-logging==0.43b0
opentelemetry-instrumentation-urllib==0.43b0
opentelemetry-instrumentation-wsgi==0.43b0
opentelemetry-instrumentation-aiohttp-client==0.43b0
opentelemetry-instrumentation-fastapi==0.43b0
opentelemetry-instrumentation-tornado==0.43b0
opentelemetry-instrumentation-urllib3==0.43b0

Steps to reproduce Automatically instrument a FastAPI application

What is the expected behaviour? The start of the trace, and possibly one span representing the time to receive the post content.

What is the actual behaviour? A large number of tiny spans are created. opentelemetry http receive

zacps avatar Mar 13 '24 00:03 zacps

Can you provide an example app that show that behaviour please?

xrmx avatar Mar 19 '24 14:03 xrmx

This should work with something simple as:

from fastapi import FastAPI

app = FastAPI()


@app.get("/")
def test():
  return "Ok"

Just post a large enough body (json is fine) to see the multiple receive calls.

zacps avatar Mar 19 '24 20:03 zacps

Any news about this bug ? @xrmx

zilinjak avatar May 09 '24 14:05 zilinjak

Any information here?

HammadB avatar Jun 29 '24 00:06 HammadB