We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1557461 commit 161adc1Copy full SHA for 161adc1
slm_server/trace.py
@@ -14,13 +14,16 @@
14
15
logger = logging.getLogger(__name__)
16
17
+
18
def setup_tracing(app: FastAPI, settings: TraceSettings) -> None:
19
"""Initialize OpenTelemetry tracing with optional Grafana Tempo export."""
20
if not settings.enabled:
21
return
-
22
23
if not settings.endpoint or not settings.username or not settings.password:
- logger.warning("Grafana Tempo endpoint or credentials are not configured, skipping tracing setup")
24
+ logger.warning(
25
+ "Grafana Tempo endpoint or credentials are not configured, skipping tracing setup"
26
+ )
27
28
29
# Define your service name in a Resource
0 commit comments