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:
334334"trace": string
335335```
336336
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+
337346### Use Cases
338347Set the input log as followed:
339348``` text
340349jsonPayload {
341350 "logging.googleapis.com/trace": "0123456789abcdef0123456789abcdef"
351+ "logging.googleapis.com/spanId": "1234567890abcdef"
342352 ...
343353}
344354```
@@ -349,6 +359,7 @@ the logEntry will be:
349359 ...
350360 }
351361 "trace": "projects/your-project-name/traces/0123456789abcdef0123456789abcdef"
362+ "spanId": "1234567890abcdef"
352363 ...
353364}
354365```
You can’t perform that action at this time.
0 commit comments