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
Instrumentation doesn't work with several types of importing. Problem with injecting technique through setattr. Looks like it not the best solution because not works with some imports variants.
Steps to Reproduce
from aiohttp import web
from aiohttp.web import Application
from aiohttp.web_app import Application as ApplicationFromWebApp
from aiohttp import web_app
print(web.Application)
print(Application)
print(web_app.Application)
print(ApplicationFromWebApp)
from opentelemetry.instrumentation.aiohttp_server import AioHttpServerInstrumentor
AioHttpServerInstrumentor().instrument()
print("instrumentation enable")
print(web.Application)
print(Application)
print(web_app.Application)
print(ApplicationFromWebApp)
nesb1
changed the title
aiohttp-server instrumentation does not works with some imports
aiohttp-server instrumentation doesn't work with several types of importing
Jan 30, 2025
Describe your environment
Problem not related to the environment
What happened?
Instrumentation doesn't work with several types of importing. Problem with injecting technique through setattr. Looks like it not the best solution because not works with some imports variants.
Steps to Reproduce
Expected Result
Actual Result
Additional context
No response
Would you like to implement a fix?
yes
The text was updated successfully, but these errors were encountered: