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
Describe your environment
python 3.11, opentelemetry-instrumentation-aiohttp-server v0.43b0 (installed from git).
Steps to reproduce
Start aiohttp server with instrumentation and make several requests.
What is the expected behavior?
No warning shows
What is the actual behavior?
Warnings in logs for each request:
An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
Additional context
Aiohttp instrumentation creates middleware that runs for each request and init metric each time. Instead, it should attach metrics to the app and only increment/decrement it.
Describe your environment
python 3.11, opentelemetry-instrumentation-aiohttp-server v0.43b0 (installed from git).
Steps to reproduce
Start aiohttp server with instrumentation and make several requests.
What is the expected behavior?
No warning shows
What is the actual behavior?
Warnings in logs for each request:
Additional context
Aiohttp instrumentation creates middleware that runs for each request and init metric each time. Instead, it should attach metrics to the app and only increment/decrement it.
opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server/__init__.py
Line 207 in 8fd2105
The text was updated successfully, but these errors were encountered: