File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -334,11 +334,21 @@ The JSON representation is as followed:
334
334
"trace": string
335
335
```
336
336
337
+ ## Span ID
338
+
339
+ The span ID within the trace associated with the log entry.
340
+
341
+ The JSON representation is as followed:
342
+ ``` text
343
+ "spanId": string
344
+ ```
345
+
337
346
### Use Cases
338
347
Set the input log as followed:
339
348
``` text
340
349
jsonPayload {
341
350
"logging.googleapis.com/trace": "0123456789abcdef0123456789abcdef"
351
+ "logging.googleapis.com/spanId": "1234567890abcdef"
342
352
...
343
353
}
344
354
```
@@ -349,6 +359,7 @@ the logEntry will be:
349
359
...
350
360
}
351
361
"trace": "projects/your-project-name/traces/0123456789abcdef0123456789abcdef"
362
+ "spanId": "1234567890abcdef"
352
363
...
353
364
}
354
365
```
You can’t perform that action at this time.
0 commit comments