Repository navigation
feat(langfuse)!: migrate the sdk callback to langfuse v4 #36741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
0d93439
feat(langfuse): migrate the sdk callback to langfuse v4
yucheng-berri e4d6024
fix(langfuse): drop the always-true prompt client check now that v4 g…
yucheng-berri edf0d13
test(langfuse): isolate the e2e sync test from cached clients and log…
yucheng-berri 5d0b89e
refactor(langfuse): type the slack trace-url lookup and drop dead v2 …
yucheng-berri 0853a0e
test(slack): cover the langfuse trace url built from the logger host
yucheng-berri 9bb2630
build(docker): pin langfuse to the locked 4.15.2 in the pip image
yucheng-berri a06c828
fix(langfuse): hash all-zero trace and observation ids instead of pas…
yucheng-berri ed239b6
feat(langfuse): honour caller generation ids and assert v4 OTLP expor…
yucheng-berri 0209e03
refactor(langfuse): read the sdk version header from package metadata
yucheng-berri 58c913e
fix(langfuse): propagate trace_metadata as trace-level attributes in v4
yucheng-berri 45fc311
fix(langfuse): propagate interrupts raised during deferred client tea…
yucheng-berri dddc1e0
fix(langfuse): honor ssl_verify=False and SSL_VERIFY on the v4 OTLP e…
yucheng-berri e590e08
fix(langfuse): fall back to the default CA when the configured bundle…
yucheng-berri d527692
fix(langfuse): renew the client when eviction lands before the callba…
yucheng-berri 6c68f20
fix(langfuse): emit litellm_call_id and response_id as generation met…
yucheng-berri 8aad478
refactor(langfuse): read the response id through a typed protocol
yucheng-berri a279605
fix(langfuse): do not claim trace root when continuing an existing trace
yucheng-berri 7eb3538
fix(langfuse): iterate lease renewal instead of recursing, monkeypatc…
yucheng-berri fc180f9
fix(langfuse): retry raised OTLP exports and honor LANGFUSE_TIMEOUT
yucheng-berri 78bc59b
fix(langfuse): sample on a hash of the full trace id and tolerate bad…
yucheng-berri 828f51d
fix(langfuse): put the Langfuse trace link back into Slack alerts
yucheng-berri a7bafbf
chore(deps): relock langfuse 4.15.2 and opentelemetry 1.33.1 on curre…
yucheng-berri ee18d70
chore(langfuse): mark the deliberate blind except in client teardown …
yucheng-berri 66cc42a
refactor(langfuse): pass the resource attributes mapping straight to …
yucheng-berri 13d12ae
fix(langfuse): warn about ignored UPSTREAM_LANGFUSE_* on the shared c…
yucheng-berri edb9d6e
fix(langfuse): normalise the OTLP export path so a trailing host slas…
yucheng-berri 0fbc801
fix(langfuse): nest guardrail and grounding spans under the generation
yucheng-berri 5192f92
fix(langfuse): rebuild the cached bundle when mock mode or sample rat…
yucheng-berri 2dbbea5
fix(langfuse): keep trace_public true when a guardrail span is exported
yucheng-berri 2f33397
refactor(langfuse): emit observations as plain OTel spans, keep the S…
yucheng-berri 58e97f5
fix(langfuse): hand the SDK client a validated sample rate so an unus…
yucheng-berri 24927b9
fix(langfuse): gate the SDK version before importing the OTel module …
yucheng-berri 31e1c35
Merge remote-tracking branch 'origin/main' into litellm_langfuse_sdk_v4
yucheng-berri 399da68
fix(langfuse): flush every export channel on proxy shutdown and use t…
yucheng-berri 53cbe2e
fix(langfuse): store resolved credentials on LangfusePromptManagement
yucheng-berri 802dd6a
fix(langfuse): flush every export channel concurrently under one shut…
yucheng-berri 89a2b42
fix(langfuse): flush export channels on daemon threads so a stuck cha…
yucheng-berri 6093893
Merge remote-tracking branch 'origin/main' into litellm_langfuse_sdk_v4
yucheng-berri bbef26a
fix(langfuse): own the tracer config and drop the SDK client for prom…
yucheng-berri 879d8b2
Merge remote-tracking branch 'origin/main' into litellm_langfuse_sdk_v4
yucheng-berri 50d4bc1
refactor(langfuse): export OTLP spans and fetch prompts through litel…
yucheng-berri fdba8aa
fix(langfuse): gate the SDK version before importing the tracing modu…
yucheng-berri 21ee000
fix(langfuse): end the generation when a child span fails, take the c…
yucheng-berri 548c486
fix(langfuse): claim the cache entry before releasing its slot and ch…
yucheng-berri 148b8f1
fix(langfuse): coerce generation names, keep v2 release, timeout and …
yucheng-berri 2ac91a8
test(proxy): assert the current Langfuse shutdown flush warning
yucheng-berri 2046264
fix(langfuse): keep host OTel resource out, carry big metadata ints, …
yucheng-berri c662597
fix(langfuse): name a malformed prompt cache TTL before the SDK impor…
yucheng-berri 6b41d4e
fix(langfuse): name the auth check failure, split a 413 export, wire …
yucheng-berri 0b0e309
fix(langfuse): honor LANGFUSE_DEBUG on the callbacks path, cap retry …
yucheng-berri 10f05c6
Merge remote-tracking branch 'origin/main' into litellm_langfuse_sdk_v4
yucheng-berri d6086f0
fix(langfuse): cap LANGFUSE_MAX_RETRIES at 1000 so an absurd value ca…
yucheng-berri f0c38e1
refactor(langfuse): fold 413 halving into bounded rounds instead of r…
yucheng-berri da35446
fix(langfuse): truncate a single oversized span like v2 instead of dr…
yucheng-berri 3f2e013
fix(langfuse): write the metadata truncation marker under a flattened…
yucheng-berri 66bd48c
test(langfuse): patch the HTTPHandler export path and sync the metada…
yucheng-berri 0246bc2
Merge remote-tracking branch 'origin/main' into litellm_langfuse_sdk_v4
yucheng-berri 8bbdda4
refactor(langfuse): give the 413 split helpers a single explicit retu…
yucheng-berri 20043ae
fix(langfuse): url-encode prompt names and fetch cold prompts without…
yucheng-berri 59a2e81
fix(langfuse): retry a cold prompt miss once and drop upstream header…
yucheng-berri a1e9593
test(langfuse): stub the logger in the health auth_check test instead…
yucheng-berri a819557
test(langfuse): integration test for OTLP v4 delivery and prompt fetc…
yucheng-berri 09cc332
Merge remote-tracking branch 'origin/main' into litellm_langfuse_sdk_v4
yucheng-berri fdbd084
build(docker): keep the pip image's langfuse and otel pins on the v2 …
yucheng-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.