Skip to content

Commit

Permalink
fixed psycopg2 instrumentor
Browse files Browse the repository at this point in the history
  • Loading branch information
gurustacks committed Sep 19, 2024
1 parent e8fd58e commit b7f8e76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dso_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@

from azure.monitor.opentelemetry import configure_azure_monitor
from opentelemetry.instrumentation.django import DjangoInstrumentor
from opentelemetry.instrumentation.psycopg import PsycopgInstrumentor
from opentelemetry.instrumentation.psycopg2 import Psycopg2Instrumentor
from opentelemetry.sdk.resources import Resource
from opentelemetry.semconv.resource import ResourceAttributes

Expand Down Expand Up @@ -353,7 +353,7 @@ def response_hook(span, request, response):
DjangoInstrumentor().instrument(response_hook=response_hook)
print("django instrumentor enabled")

PsycopgInstrumentor().instrument(enable_commenter=True, commenter_options={})
Psycopg2Instrumentor().instrument(enable_commenter=True, commenter_options={})
print("psycopg instrumentor enabled")

# -- Third party app settings
Expand Down

0 comments on commit b7f8e76

Please sign in to comment.