You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using FastAPI to receive trace data from OpenTelemetry Collector (otelcol), but I am experiencing data loss. Specifically, each API call should generate one trace record. However, when I use a shell script to rapidly call the API (about ten times per second), I expect to receive ten trace records. Instead, my FastAPI only receives 3-4 trace records.
What I’ve Tried:
Using Redis for caching
Asynchronous processing
Multithreading
None of these attempts resolved the data loss issue.
Environment Information:
Deployed on Kubernetes
Below are my YAML configuration files for the OpenTelemetry Collector and Instrumentation, as well as the FastAPI code (please include the actual code or configurations).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem Description:
I am using FastAPI to receive trace data from OpenTelemetry Collector (otelcol), but I am experiencing data loss. Specifically, each API call should generate one trace record. However, when I use a shell script to rapidly call the API (about ten times per second), I expect to receive ten trace records. Instead, my FastAPI only receives 3-4 trace records.
What I’ve Tried:
Using Redis for caching
Asynchronous processing
Multithreading
None of these attempts resolved the data loss issue.
Environment Information:
Deployed on Kubernetes
Below are my YAML configuration files for the OpenTelemetry Collector and Instrumentation, as well as the FastAPI code (please include the actual code or configurations).
Does anyone know why the data loss might be occurring? How can I ensure that FastAPI receives all the trace data?
Beta Was this translation helpful? Give feedback.
All reactions