-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
API calls being counted twice for fastapi sample app #559
Comments
@makeavish you can check if otel-collector is receiving double number of traces or not at metric_name The |
The endpoint metrics are not being captured by Otel metrics collector. The metrics are being calculated by traces. |
correct |
@makeavish I have added another branch console-exporter which enables exporting spans to console. This seems to work fine with just 1 SERVER span and 2 internal spans. Maybe something weird happening in otlp-exporter or steps via which it is automatically enabled. Below is the output of console-exporter
|
In my case, I get 3 server spans for 1 request. I noticed, 1 spans comes immediately and the 2 other replicas arrive with a delay of a few seconds |
I can see that incase of OTLP exporter we get 6 spans for 1 request. |
After using |
There was no issue in fastAPI otel exporter. Actually, we were instrumenting FastAPI app twice(both automated and semi-automated way). |
Bug description
API calls being counted twice for fastapi apps
Expected behavior
API calls shouldn't be counted twice
How to reproduce
Version information
Additional context
Sample video: https://www.loom.com/share/f5f80d162f034e30afff78dab384cd0f
Thank you for your bug report – we love squashing them!
The text was updated successfully, but these errors were encountered: