chore(otel-v2): drop dead enable_events config field

LITELLM_OTEL_INTEGRATION_ENABLE_EVENTS was never read in the V2 package; event
emission is driven by capture_message_content (event_only / span_and_event) per
the OTel ContentCapturingMode contract. Leaving the field would let an operator
set it and silently get no events. The V1 integration keeps its own enable_events
on OpenTelemetryConfig, which is unaffected. extra="ignore" means a stale env var
is harmlessly ignored rather than erroring.
This commit is contained in:
akashkathole7 2026-06-22 17:31:10 +05:30
parent a982517eb7
commit d8a1ad7e18

View file

@ -127,10 +127,6 @@ class OpenTelemetryV2Config(BaseSettings):
default=False,
validation_alias=AliasChoices("LITELLM_OTEL_INTEGRATION_ENABLE_METRICS"),
)
enable_events: bool = Field(
default=False,
validation_alias=AliasChoices("LITELLM_OTEL_INTEGRATION_ENABLE_EVENTS"),
)
capture_message_content: str = Field(
default=CaptureMessageContent.NO_CONTENT,
validation_alias=AliasChoices(