Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pipeline/outputs/stackdriver_special_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,21 @@ The JSON representation is as followed:
"trace": string
```

## Span ID

The span ID within the trace associated with the log entry.

The JSON representation is as followed:
```text
"spanId": string
```

### Use Cases
Set the input log as followed:
```text
jsonPayload {
"logging.googleapis.com/trace": "0123456789abcdef0123456789abcdef"
"logging.googleapis.com/spanId": "1234567890abcdef"
...
}
```
Expand All @@ -349,6 +359,7 @@ the logEntry will be:
...
}
"trace": "projects/your-project-name/traces/0123456789abcdef0123456789abcdef"
"spanId": "1234567890abcdef"
...
}
```
Expand Down