Skip to content

Commit c2c6cf1

Browse files
authored
Add httpx instrumentation (#600)
1 parent 256522f commit c2c6cf1

File tree

3 files changed

+105
-97
lines changed

3 files changed

+105
-97
lines changed

code/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from azure.monitor.opentelemetry import configure_azure_monitor
2+
from opentelemetry.instrumentation.httpx import HTTPXClientInstrumentor
23

34
configure_azure_monitor()
5+
HTTPXClientInstrumentor().instrument() # httpx is used by openai
46

57
from create_app import create_app # noqa: E402
68

0 commit comments

Comments
 (0)