Skip to content

Commit

Permalink
Add TraceState to the LogRecord
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu committed Jan 9, 2024
1 parent ea449ae commit b2739c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Full list of differences found in [this compare](https://github.com/open-telemet

* Add a field for W3C-specified Trace Context flags to the `Span` and `Link`.
[#503](https://github.com/open-telemetry/opentelemetry-proto/pull/503)
* Add a field for W3C-specified Trace Context TraceState to the `LogRecord`.
[#522](https://github.com/open-telemetry/opentelemetry-proto/pull/522)

## 1.0.0 - 2023-07-03

Expand Down
5 changes: 5 additions & 0 deletions opentelemetry/proto/logs/v1/logs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,9 @@ message LogRecord {
// - the field is not present,
// - the field contains an invalid value.
bytes span_id = 10;

// trace_state conveys information about request position in multiple distributed tracing graphs.
// It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header
// See also https://github.com/w3c/distributed-tracing for more details about this field.
string trace_state = 12;
}

0 comments on commit b2739c2

Please sign in to comment.