{"record":{"id":"94f26c760fd7860c","repo":"BerriAI/litellm","slug":"standard-logging-object-not-found-in-kwargs-94f26c","errorCode":null,"errorMessage":"standard_logging_object not found in kwargs","messagePattern":"standard_logging_object not found in kwargs","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/integrations/opentelemetry.py","lineNumber":2200,"sourceCode":"                    LangfuseOtelLogger,\n                )\n\n                LangfuseOtelLogger.set_langfuse_otel_attributes(span, kwargs, response_obj)\n                return\n            elif self.callback_name == \"weave_otel\":\n                from litellm.integrations.weave.weave_otel import (\n                    set_weave_otel_attributes,\n                )\n\n                set_weave_otel_attributes(span, kwargs, response_obj)\n                return\n            from litellm.proxy._types import SpanAttributes\n\n            optional_params: Final = kwargs.get(\"optional_params\", {})\n            litellm_params: Final = kwargs.get(\"litellm_params\", {}) or {}\n            standard_logging_payload: Final[StandardLoggingPayload | None] = kwargs.get(\"standard_logging_object\")\n            if standard_logging_payload is None:\n                raise ValueError(\"standard_logging_object not found in kwargs\")\n\n            # https://github.com/open-telemetry/semantic-conventions/blob/main/model/registry/gen-ai.yaml\n            # Following Conventions here: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/llm-spans.md\n            #############################################\n            ############ LLM CALL METADATA ##############\n            #############################################\n            metadata: Final = standard_logging_payload[\"metadata\"]\n            for key, value in metadata.items():\n                self.safe_set_attribute(span=span, key=f\"metadata.{key}\", value=value)\n\n            # get hidden params\n            hidden_params: Final = getattr(standard_logging_payload, \"hidden_params\", None) or (\n                standard_logging_payload or {}\n            ).get(\"hidden_params\", {})\n            if hidden_params:\n                self.safe_set_attribute(\n                    span=span,\n                    key=\"hidden_params\",","sourceCodeStart":2182,"sourceCodeEnd":2218,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/integrations/opentelemetry.py#L2182-L2218","documentation":"Error \"standard_logging_object not found in kwargs\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/integrations/opentelemetry.py:2200 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure standard_logging_object is present in the logging kwargs before the OpenTelemetry callback runs."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}