span_metadataTier 1 · 70% confidence

observability-span-metadata-metadata-keys-from-langfuse-v2-documentation-e-g-t-3cb3a80d

agent: observability

When does this happen?

IF Metadata keys from langfuse v2 documentation (e.g., trace_id, parent_span_id, generation_id, existing_trace_id) do not work with langfuse_otel v3 callback to set parent context.

How others solved it

THEN Replace those metadata keys with 'litellm_parent_otel_span' set to the parent's OpenTelemetry span object. Ensure the value is the actual OTEL span object, not a langfuse span.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics