Skip to content

Commit

Permalink
Merge pull request #1363 from garberg/correct_www_tracing_import
Browse files Browse the repository at this point in the history
Correct import path for init_tracing
  • Loading branch information
garberg authored Dec 19, 2023
2 parents 67f6fa6 + 58e2a17 commit 7e4a1bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipap-www/nipapwww/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def create_app(test_config=None):
# configure tracing
if nipap_config.has_section("tracing"):
try:
import tracing
import nipap.tracing
from opentelemetry.instrumentation.wsgi import OpenTelemetryMiddleware
tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"))
nipap.tracing.init_tracing("nipap-www", nipap_config.get("tracing", "otlp_grpc_endpoint"))
app.wsgi_app = OpenTelemetryMiddleware(app.wsgi_app)
except KeyError:
pass
Expand Down

0 comments on commit 7e4a1bd

Please sign in to comment.