[Bugfix] Remove unsupported comma-separated detailed trace values (#55702)

Signed-off-by: git-jxj <65210887+git-jxj@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
jxj
2026-09-16 18:44:48 +00:00
committed by GitHub
co-authored by Harry Mellor
parent 9639cbde04
commit 6b6bf6b3c3
2 changed files with 1 additions and 20 deletions
+1 -12
View File
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
from functools import cached_property
from typing import Any, Literal, cast
from typing import Any, Literal
from packaging.version import parse
from pydantic import Field, field_validator, model_validator
@@ -150,17 +150,6 @@ class ObservabilityConfig:
)
return value
@field_validator("collect_detailed_traces")
@classmethod
def _validate_collect_detailed_traces(
cls, value: list[DetailedTraceModules] | None
) -> list[DetailedTraceModules] | None:
"""Handle the legacy case where users might provide a comma-separated
string instead of a list of strings."""
if value is not None and len(value) == 1 and "," in value[0]:
value = cast(list[DetailedTraceModules], value[0].split(","))
return value
@model_validator(mode="after")
def _validate_tracing_config(self):
if self.collect_detailed_traces and not self.otlp_traces_endpoint: