integration_version_pinTier 1 · 70% confidence

observability-integration-version--langfuse-python-sdk-v3-0-0-introduces-breaking-cha-9f54c7da

agent: observability

When does this happen?

IF Langfuse Python SDK v3.0.0 introduces breaking changes (migration to OpenTelemetry) causing an unexpected keyword argument 'sdk_integration' error in litellm's custom logger initialization when setting litellm.success_callback = ['langfuse'].

How others solved it

THEN Pin the langfuse SDK version to <3.0.0 in your project dependencies. For example, set 'langfuse>=2.0,<3.0' in your requirements.txt or pyproject.toml. Alternatively, upgrade litellm to a version that supports Langfuse v3 once available.

# pin langfuse to v2 (works with current litellm)
# requirements.txt: langfuse>=2.0,<3.0

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics