Skip to content

Commit 4d83d91

Browse files
committed
add span id to example
1 parent 6981631 commit 4d83d91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

develop-docs/sdk/telemetry/metrics.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ If `debug` is set to `true` in SDK init, calls to the Sentry metrics API should
477477
{
478478
"timestamp": 1746456149.019,
479479
"trace_id": "624f66e93a04469f9992c7e9f1485056",
480+
"span_id": "b0e6f15b45c36b12",
480481
"name": "api.requests",
481482
"value": 1,
482483
"type": "counter",
@@ -493,6 +494,7 @@ If `debug` is set to `true` in SDK init, calls to the Sentry metrics API should
493494
{
494495
"timestamp": 1746456149.019,
495496
"trace_id": "624f66e93a04469f9992c7e9f1485056",
497+
"span_id": "b0e6f15b45c36b12",
496498
"name": "api.response_time",
497499
"value": 125.5,
498500
"unit": "millisecond",
@@ -507,6 +509,7 @@ If `debug` is set to `true` in SDK init, calls to the Sentry metrics API should
507509
{
508510
"timestamp": 1746456149.02,
509511
"trace_id": "624f66e93a04469f9992c7e9f1485056",
512+
"span_id": "b0e6f15b45c36b12",
510513
"name": "cache.hit_rate",
511514
"value": 0.95,
512515
"unit": "ratio",
@@ -521,6 +524,7 @@ If `debug` is set to `true` in SDK init, calls to the Sentry metrics API should
521524
{
522525
"timestamp": 1746456149.02,
523526
"trace_id": "624f66e93a04469f9992c7e9f1485056",
527+
"span_id": "b0e6f15b45c36b12",
524528
"name": "database.query.duration",
525529
"value": 42.3,
526530
"unit": "millisecond",
@@ -536,6 +540,7 @@ If `debug` is set to `true` in SDK init, calls to the Sentry metrics API should
536540
{
537541
"timestamp": 1746456149.021,
538542
"trace_id": "624f66e93a04469f9992c7e9f1485056",
543+
"span_id": "b0e6f15b45c36b12",
539544
"name": "active.users",
540545
"value": 12345,
541546
"type": "set",

0 commit comments

Comments
 (0)