Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ All notable changes to this package are documented here.
### Changed

- Licensed the package under LGPL-3.0-or-later.
- Pinned Langfuse 5.2.0. Clients created through `init_langfuse_telemetry` pick up the SDK's LangChain `CallbackHandler` fixes: root-run propagated attributes now reach child runs under `ainvoke`, Langfuse prompts are deregistered when a chain errors, and `message.name` is kept in generation input.
- Documented installation from tagged GitHub releases; the package is not published on PyPI.

### Fixed

- Sensitive-data redaction now masks credential fields inside JSON documents carried as strings, such as LangChain tool `input_str` and string tool outputs, in both the Langfuse mask and the OpenTelemetry mask.

## 0.3.0 - 28-08-2026

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies = [
"botocore>=1.43.82,<2",
"httpx>=0.28.1,<1",
"langchain-core>=1.6.1,<2",
"langfuse==5.0.4",
"langfuse==5.2.0",
"opentelemetry-api>=1.44.0,<2",
"opentelemetry-instrumentation-botocore>=0.65b0,<1",
"opentelemetry-instrumentation-httpx>=0.65b0,<1",
Expand All @@ -31,9 +31,9 @@ dependencies = [

[project.optional-dependencies]
redaction = [
"presidio-analyzer==2.2.364",
"presidio-anonymizer==2.2.364",
"spacy==3.8.16",
"presidio-analyzer==2.2.366",
"presidio-anonymizer==2.2.366",
"spacy==3.8.18",
"tldextract>=5.3.2,<6",
]

Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/test_langfuse_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,19 +227,19 @@ async def _wait_for_observations(
latest: dict[str, ObservationV2] = {}
while monotonic() < deadline:
try:
response = await telemetry.client.async_api.observations.get_many(
pages = telemetry.client.aiter_observation_pages(
trace_id=trace_id,
fields="core,basic,io,metadata,trace_context",
expand_metadata="authorization,e2e_run_id",
limit=20,
from_start_time=window_start,
to_start_time=window_end,
)
observations = [observation async for page in pages for observation in page.data]
except ApiError as exc:
if exc.status_code not in TRANSIENT_HTTP_STATUS_CODES:
raise
else:
latest = {observation.name: observation for observation in response.data if observation.name is not None}
latest = {observation.name: observation for observation in observations if observation.name is not None}
if _observations_ready(
latest,
expected_names=expected_names,
Expand Down
Loading