-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit a820fa2
feat(node): Add incoming request headers as OTel span attributes (#17475)
Extracting incoming request data to span attributes.
It's a very long PR but most of it are test edits as the new http
attributes are added to existing tests (otherwise, they would fail).
Those are the most important changes:
- add a function `httpHeadersToSpanAttributes` in core that is used for
generating the attributes
- adding extra logic in astro, bun, cloudflare, nextjs, remix and
sveltekit (custom handler instrumentation) to include the attributes
1 parent 3f45ae8 commit a820fa2
File tree
59 files changed
+1020
-13
lines changed- dev-packages
- e2e-tests/test-applications
- astro-4/tests
- astro-5/tests
- nestjs-11/tests
- nestjs-8/tests
- nestjs-basic/tests
- nestjs-distributed-tracing/tests
- nestjs-fastify/tests
- nestjs-with-submodules-decorator/tests
- nestjs-with-submodules/tests
- nextjs-15
- tests
- node-connect/tests
- node-express-v5/tests
- node-express/tests
- node-fastify-3/tests
- node-fastify-4/tests
- node-fastify-5/tests
- node-hapi/tests
- node-koa/tests
- node-otel-custom-sampler/tests
- node-otel-sdk-node/tests
- node-otel/tests
- nuxt-3/tests
- sveltekit-2/tests
- tsx-express/tests
- node-integration-tests/suites/tracing/httpIntegration
- packages
- astro
- src
- server
- test/server
- aws-serverless/src
- bun
- src
- integrations
- test/integrations
- cloudflare
- src
- test
- core
- src
- utils
- test/lib/utils
- google-cloud-serverless/src
- nextjs
- src
- common
- pages-router-instrumentation
- utils
- edge
- test/config
- node-core/src/integrations/http
- node/src
- remix/src/server
- sveltekit/src/server-common
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+1020
-13
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 | - | ||
236 | + | ||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
|
Lines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
81 | 86 |
| |
82 | 87 |
| |
83 | 88 |
| |
| |||
223 | 228 |
| |
224 | 229 |
| |
225 | 230 |
| |
231 | + | ||
232 | + | ||
233 | + | ||
234 | + | ||
235 | + | ||
226 | 236 |
| |
227 | 237 |
| |
228 | 238 |
| |
| |||
256 | 266 |
| |
257 | 267 |
| |
258 | 268 |
| |
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | ||
259 | 274 |
| |
260 | 275 |
| |
261 | 276 |
| |
| |||
308 | 323 |
| |
309 | 324 |
| |
310 | 325 |
| |
326 | + | ||
327 | + | ||
328 | + | ||
329 | + | ||
330 | + | ||
311 | 331 |
| |
312 | 332 |
| |
313 | 333 |
| |
| |||
360 | 380 |
| |
361 | 381 |
| |
362 | 382 |
| |
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | ||
387 | + | ||
363 | 388 |
| |
364 | 389 |
| |
365 | 390 |
| |
|
Lines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
82 | 87 |
| |
83 | 88 |
| |
84 | 89 |
| |
| |||
226 | 231 |
| |
227 | 232 |
| |
228 | 233 |
| |
234 | + | ||
235 | + | ||
236 | + | ||
237 | + | ||
238 | + | ||
229 | 239 |
| |
230 | 240 |
| |
231 | 241 |
| |
| |||
259 | 269 |
| |
260 | 270 |
| |
261 | 271 |
| |
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | ||
262 | 277 |
| |
263 | 278 |
| |
264 | 279 |
| |
| |||
311 | 326 |
| |
312 | 327 |
| |
313 | 328 |
| |
329 | + | ||
330 | + | ||
331 | + | ||
332 | + | ||
333 | + | ||
314 | 334 |
| |
315 | 335 |
| |
316 | 336 |
| |
| |||
363 | 383 |
| |
364 | 384 |
| |
365 | 385 |
| |
386 | + | ||
387 | + | ||
388 | + | ||
389 | + | ||
390 | + | ||
366 | 391 |
| |
367 | 392 |
| |
368 | 393 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
73 | 78 |
| |
74 | 79 |
| |
75 | 80 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
41 | 48 |
| |
42 | 49 |
| |
43 | 50 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
41 | 48 |
| |
42 | 49 |
| |
43 | 50 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
41 | 48 |
| |
42 | 49 |
| |
43 | 50 |
| |
|
Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
35 | 39 |
| |
36 | 40 |
| |
37 | 41 |
| |
| |||
75 | 79 |
| |
76 | 80 |
| |
77 | 81 |
| |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
78 | 89 |
| |
79 | 90 |
| |
80 | 91 |
| |
| |||
106 | 117 |
| |
107 | 118 |
| |
108 | 119 |
| |
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
109 | 124 |
| |
110 | 125 |
| |
111 | 126 |
| |
| |||
146 | 161 |
| |
147 | 162 |
| |
148 | 163 |
| |
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | ||
149 | 168 |
| |
150 | 169 |
| |
151 | 170 |
| |
| |||
189 | 208 |
| |
190 | 209 |
| |
191 | 210 |
| |
211 | + | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | ||
217 | + | ||
192 | 218 |
| |
193 | 219 |
| |
194 | 220 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
41 | 48 |
| |
42 | 49 |
| |
43 | 50 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
41 | 48 |
| |
42 | 49 |
| |
43 | 50 |
| |
|
0 commit comments