Added an iter_observation_pages helper for observations v2. Batch evaluation now keeps paging past empty observation pages and uses a 60 second timeout for observation page fetches.
Python SDK
npx @buildinternet/releases get langfuse-python-sdkThe skills API moves to a stable namespace, with skill availability now set through propagation only and the SDK returning no skills when the skills directory cannot be read. Also fixed OpenAI provider responses dropping audio data, Langfuse prompts staying registered when a chain run errors, and root trace attributes not propagating to child runs under ainvoke.
Fixed flush() hanging after a repeated shutdown() in the media client, and made flush() and shutdown() work under gevent. Also cleaned up the streaming run memo on error in the LangChain integration.
Pending scores are now sent immediately when flush() is called, and run_experiment accepts a caller-supplied experiment_id. The serializer also skips the isinstance chain for plain JSON values.
Span attribute limit checks are skipped when a span has room, and create_score request bodies are built without Fern's dict(). Plus documentation clarifying JSON-encoded metadata values in mask_otel_spans.
This release points to the v4-to-v5 upgrade path and migration guide for the Langfuse Python SDK.
Dataset JSON-schema response fields are now typed as objects and read-side metadata types as optional objects, with cursor pagination metadata shared through a single CursorMetaResponse model. Documentation also covers the metadata is set / is not set filter operators and fromStartTime being required on experiments endpoints.
The default OTLP exporter now supports opt-in gzip compression for exported spans.
The OpenTelemetry exporter now caps default batches at 64 MiB to avoid oversized exports, tracked via a minor version bump. Remaining changes are GitHub Actions dependency bumps.
OpenAI instrumentation now records reasoning_effort and verbosity in captured model parameters.
Fixed the serializer so NaN and Inf values nested inside converted containers are sanitized. Plus PyPI metadata additions for project URLs and keywords.
Fixed the serializer to mask pydantic secret values, which could otherwise be written out in cleartext.
What's Changed chore(deps): bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 in the github-actions group across 1 directory by @dependabot[bot] in https://github.com/langfuse/langfuse-python/pull/1865 docs: strengthen agent-facing README so v2 APIs are not treated as current…
What's Changed chore(deps): bump the github-actions group with 2 updates by @dependabot[bot] in https://github.com/langfuse/langfuse-python/pull/1847 feat(api): update API spec from langfuse/langfuse 4e0ce09 by @langfuse-bot in…
Span processing now skips the span formatter when debug logging is off, and log calls use lazy %-style formatting, reducing overhead in hot paths. API spec updated from langfuse/langfuse.
Fixed a memory leak in OpenTelemetry traces. Also includes automated updates to the API spec from upstream.
Fixed handling of NaN/Inf floats nested in pydantic models during serialization. Updated API spec from langfuse/langfuse and fixed a PyPI hero image aspect ratio issue.
Media data URIs now support URL-safe Base64 instead of only standard Base64. OpenAI Omit sentinels are now treated like NotGiven when logging.
Fixes OTel span masking to keep the last duplicate span in each batch instead of an earlier one.


