Commit 982aa48
feat!: remove endpoints deprecated in Langfuse v4 (#49)
Langfuse v4 moves to an observations-first data model, and the endpoints
built on the v3 model are deprecated: Langfuse Cloud serves them until
November 16, 2026, and self-hosted deployments lose them on upgrade to v4.
This prunes them from the generated client so it only exposes the API
surface that survives the cutover.
Removed entirely (every endpoint deprecated):
ingestion POST /ingestion
observations GET /observations, /observations/{id}
metrics GET /metrics (v1)
sessions GET /sessions, /sessions/{id}
scorev2 GET /v2/scores, /v2/scores/{id}
datasetrunitems POST/GET /dataset-run-items
Pruned to the non-deprecated operations:
trace dropped get()/list(), kept delete()/deleteMultiple() — trace
deletion is not deprecated and is now the documented way to
delete experiment data
datasets dropped getRun()/deleteRun()/getRuns(), kept the /v2/datasets
operations
Also drops the 34 types under resources/commons/types that the removal
orphaned (the v3-model read models: Trace*, Session*, Observation,
ObservationsView, the Score/ScoreV1 unions, DatasetRun*, Usage) and unwires
the six clients from LangfuseClient/AsyncLangfuseClient. Orphan status was
verified with an import-graph reachability pass and diffed against HEAD so
pre-existing orphans stayed out of scope.
Score writes are unaffected: POST /scores and DELETE /scores/{scoreId} stay
supported after the cutover. Only score reads move to /v3/scores.
The README now leads with OpenTelemetry as the recommended and going-forward
only supported path for tracing, and documents the per-endpoint migration
mapping. It also records that the prune has to be re-applied after each
regeneration, since the generator reproduces deprecated endpoints.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent bd07ee8 commit 982aa48
132 files changed
Lines changed: 68 additions & 42009 deletions
File tree
- src/main/java/com/langfuse/client
- resources
- commons/types
- datasetrunitems
- requests
- types
- datasets
- requests
- types
- ingestion
- requests
- types
- metrics
- requests
- types
- observations
- requests
- types
- scorev2
- requests
- types
- sessions
- requests
- types
- trace
- requests
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
9 | 23 | | |
10 | 24 | | |
11 | 25 | | |
| |||
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
53 | 91 | | |
54 | 92 | | |
55 | 93 | | |
| |||
117 | 155 | | |
118 | 156 | | |
119 | 157 | | |
120 | | - | |
| 158 | + | |
| 159 | + | |
Lines changed: 0 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | | - | |
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
| |||
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | | - | |
32 | | - | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
| |||
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
46 | | - | |
47 | | - | |
48 | 40 | | |
49 | 41 | | |
50 | 42 | | |
51 | 43 | | |
52 | | - | |
53 | | - | |
54 | 44 | | |
55 | 45 | | |
56 | 46 | | |
57 | 47 | | |
58 | 48 | | |
59 | 49 | | |
60 | | - | |
61 | | - | |
62 | 50 | | |
63 | 51 | | |
64 | 52 | | |
65 | 53 | | |
66 | | - | |
67 | | - | |
68 | 54 | | |
69 | 55 | | |
70 | 56 | | |
| |||
79 | 65 | | |
80 | 66 | | |
81 | 67 | | |
82 | | - | |
83 | | - | |
84 | 68 | | |
85 | 69 | | |
86 | | - | |
87 | | - | |
88 | 70 | | |
89 | 71 | | |
90 | 72 | | |
| |||
93 | 75 | | |
94 | 76 | | |
95 | 77 | | |
96 | | - | |
97 | 78 | | |
98 | 79 | | |
99 | | - | |
100 | 80 | | |
101 | 81 | | |
102 | 82 | | |
103 | | - | |
104 | 83 | | |
105 | 84 | | |
106 | | - | |
107 | 85 | | |
108 | 86 | | |
109 | 87 | | |
110 | 88 | | |
111 | 89 | | |
112 | 90 | | |
113 | 91 | | |
114 | | - | |
115 | 92 | | |
116 | | - | |
117 | 93 | | |
118 | 94 | | |
119 | 95 | | |
| |||
133 | 109 | | |
134 | 110 | | |
135 | 111 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 112 | | |
141 | 113 | | |
142 | 114 | | |
| |||
145 | 117 | | |
146 | 118 | | |
147 | 119 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 120 | | |
153 | 121 | | |
154 | 122 | | |
| |||
161 | 129 | | |
162 | 130 | | |
163 | 131 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 132 | | |
169 | 133 | | |
170 | 134 | | |
| |||
173 | 137 | | |
174 | 138 | | |
175 | 139 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 140 | | |
181 | 141 | | |
182 | 142 | | |
| |||
205 | 165 | | |
206 | 166 | | |
207 | 167 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 168 | | |
213 | 169 | | |
214 | 170 | | |
215 | 171 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 172 | | |
221 | 173 | | |
222 | 174 | | |
| |||
0 commit comments