Update litellm/litellm_core_utils/litellm_logging.py

Co-authored-by: veria-ai[bot] <224490171+veria-ai[bot]@users.noreply.github.com>
This commit is contained in:
Jordan Stein 2026-10-20 10:23:11 -04:00 • committed by Jordan
parent a212e107c3
commit c1ae77fe38

View file

@ -5721,6 +5721,7 @@ def build_custom_logger_compatible_class(
_nops_base: Final = (os.getenv(NOPS_OTEL_ENDPOINT_ENV) or NOPS_DEFAULT_OTEL_ENDPOINT).rstrip("/")
_nops_config: Final = OpenTelemetryConfig(
exporter="otlp_http",
skip_set_global=True,
endpoint=(_nops_base if _nops_base.endswith("/v1/traces") else f"{_nops_base}/v1/traces"),
headers=f"Authorization=Bearer {_nops_key}",
capture_message_content=(