Repository navigation
Commit 4ea561d
test: run the e2e suites on Langfuse v4 events_only (#1937)
* feat(tracing)!: remove trace-level input/output setters
Remove the deprecated Langfuse.set_current_trace_io() and
span.set_trace_io(), the langfuse.trace.input/output attributes, and
their media handling. On Langfuse v4 a trace's input and output come
from its root observation: set them with update() on the root span or
update_current_span().
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* test: read e2e assertions through the v4 observations API
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* ci: run e2e against an events_only server
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* test: pin that create_score logs invalid input without enqueueing
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* test: remove the v3 wait_for_trace helper
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* test: keep scalar text IO as strings and read full response_format
The v2 observations API returns IO as raw strings, so only JSON objects
and arrays are parsed back; text like "2" stays a string. The
response_format assertion requests the untruncated metadata value.
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
* test: dedupe observation rows and assert streamed text as a string
The events table can briefly return several rows for one span, so the
observation helper keeps the latest row per id. A streamed completion of
"2" is text and is now asserted as a string.
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>1 parent 8063f84 commit 4ea561d
13 files changed
Lines changed: 1549 additions & 1443 deletions
File tree
- .github
- workflows
- tests
- e2e
- live_provider
- support
- unit
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| |||
0 commit comments