Skip to content

Commit

Permalink
Update telemetry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sinto-aot authored Mar 6, 2025
1 parent 6490c82 commit 657f3cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def setup_tracing(app, service_name):
"""Sets up OpenTelemetry tracing for the application."""
# Check if OpenTelemetry tracing is enabled
if os.getenv("ENABLE_OPENTELEMETRY", "false").lower() != "true":
print("OpenTelemetry tracing is disabled.")
app.logger.info("OpenTelemetry tracing is disabled.")
return

resource = Resource.create({"service.name": service_name})
Expand Down

0 comments on commit 657f3cd

Please sign in to comment.