mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
chore(otel): drop added inline comments
This commit is contained in:
parent
60194646fc
commit
49112b218b
2 changed files with 1 additions and 4 deletions
|
|
@ -21,9 +21,7 @@ from litellm.integrations.otel.mappers.openinference import OpenInferenceMapper
|
|||
from litellm.integrations.otel.mappers.weave import WeaveMapper
|
||||
from litellm.integrations.otel.model.config import OpenTelemetryV2Config
|
||||
|
||||
# Registry keyed by ``config.mapper_names`` entries. Every factory takes the
|
||||
# config so a vocabulary that has operator-configurable behaviour (the Langfuse
|
||||
# metadata allowlist) reads it from the same source of truth as the rest.
|
||||
# Registry keyed by ``config.mapper_names`` entries.
|
||||
_MAPPER_BY_NAME: dict[str, Callable[[OpenTelemetryV2Config | None], AttributeMapper]] = {
|
||||
"genai": lambda _config: GenAIMapper(),
|
||||
"legacy": lambda _config: LegacyMapper(),
|
||||
|
|
|
|||
|
|
@ -570,7 +570,6 @@ def test_request_annotations_parse_caller_trace_controls():
|
|||
assert annotations.session_id == "session-1"
|
||||
assert annotations.trace_name == "chat-request"
|
||||
assert annotations.tags == ("test", "user_agent:curl")
|
||||
# scalars only: the ``tags`` list is not a span-safe value here
|
||||
assert annotations.requester_metadata == {
|
||||
"trace_user_id": "user-1",
|
||||
"session_id": "session-1",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue