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
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,15 @@ message Elements {
// extensible and backward compatible
message ElementMetadata {
optional DrainMode.Enum drain = 1;
// (Optional) As part of https://www.w3.org/TR/trace-context/ we are forwarding a trace and participating in it.
// Traceparent header represents the incoming request in a tracing system in a common format.
// Example value: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01
optional string traceparent = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can some comments be added on what they are and/or link to doc? I'm guessing parent is some id? but what is trace state? Should it be an enum? Should either of these be bytes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the feedback. It've linked to the doc and added the comment and example

// (Optional) tracestate extends traceparent with open telemetry data represented by a set of name/value pairs.
// Format specified https://www.w3.org/TR/trace-context/#list for interoperability and commonly used
// across IOs - Kafka, PubSub, http.
// Example value: congo=t61rcWkgMzE
optional string tracestate = 3;
}

// Represent the encoded user timer for a given instruction, transform and
Expand Down
Loading