Commit 38acff5
committed
fix(pyramid): add missing http.response.status_code in duration metrics
The new convention for metrics use http.response.status_code in metrics for
http.server.request.duration metric:
https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration
Only the old convention had the attribute for pyramid, but the new one was missing.1 parent 498b928 commit 38acff5
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- instrumentation/opentelemetry-instrumentation-pyramid
- src/opentelemetry/instrumentation/pyramid
- tests
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | | - | |
269 | | - | |
270 | | - | |
| 269 | + | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
483 | 484 | | |
484 | 485 | | |
485 | 486 | | |
| |||
0 commit comments