feat: Add OpenTelemetry Metrics Support via OTLP Exporter

This commit is contained in:
Jason Kidd
2025-05-22 15:18:15 -07:00
parent 63256136ef
commit 210dc746f0
3 changed files with 121 additions and 1 deletions

View File

@@ -539,6 +539,7 @@ AUDIT_EXCLUDED_PATHS = [path.lstrip("/") for path in AUDIT_EXCLUDED_PATHS]
####################################
ENABLE_OTEL = os.environ.get("ENABLE_OTEL", "False").lower() == "true"
ENABLE_OTEL_METRICS = os.environ.get("ENABLE_OTEL_METRICS", "False").lower() == "true"
OTEL_EXPORTER_OTLP_ENDPOINT = os.environ.get(
"OTEL_EXPORTER_OTLP_ENDPOINT", "http://localhost:4317"
)