Skip to content

Commit

Permalink
Specify expected behaviour when no traceparent is received (#475)
Browse files Browse the repository at this point in the history
* Specify expected behaviour when no traceparent is received

Resolves #442.

* Be more precise in possible reason for not generating traceparent
  • Loading branch information
basti1302 authored Jan 4, 2022
1 parent 3081b03 commit c899924
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/20-http_request_header_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ The version of `tracestate` is defined by the version prefix of `traceparent` he

## Mutating the traceparent Field

A vendor receiving a request without a `traceparent` header SHOULD generate `traceparent` headers for outbound requests, effectively starting a new trace. A possible reason for not doing this could be a performance sensitive scenario when the vendor decides to not sample a request. Note that for most scenarios, vendors are expected to generate the header even when not sampling, to propagate the sampling decision downstream.

A vendor receiving a `traceparent` request header MUST send it to outgoing requests. It MAY mutate the value of this header before passing it to outgoing requests.

If the value of the `traceparent` field wasn't changed before propagation, `tracestate` MUST NOT be modified as well. Unmodified header propagation is typically implemented in pass-through services like proxies. This behavior may also be implemented in a service which currently does not collect distributed tracing information.
Expand Down

0 comments on commit c899924

Please sign in to comment.