-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style: 'free to' → SHOULD/MAY #424
Conversation
This replaces ambigous 'free to' with SHOULD/MAY and also replaces provisional (and unused) `X-Trace` with optional Trace Context and Server Timing headers.
### `Server-Timing` (response header) | ||
|
||
Optional. Implementations are free to use this header to return a globally | ||
Optional. Implementations MAY use this header to communicate one or more | ||
metrics and descriptions for the given request-response cycle. | ||
|
||
See `Server-Timing` at [W3C: Server Timing](https://www.w3.org/TR/server-timing/#the-server-timing-header-field). | ||
|
||
### `Traceparent` (response header) | ||
|
||
Optional. Implementations MAY use this header to return a globally | ||
unique identifier to help in debugging errors and performance issues. | ||
|
||
A good practice is to always return it with HTTP error [status codes](#response-status-codes) >=`400`. | ||
See `Traceparent` at [W3C: Trace Context](https://www.w3.org/TR/trace-context-1/#traceparent-header). | ||
|
||
### `Tracestate` (response header) | ||
|
||
Optional. Implementations MAY use this header to return a additional | ||
vendor-specific trace identification information across different distributed | ||
tracing systems and is a companion header for the `Traceparent` header. | ||
|
||
See `Tracestate` at [W3C: Trace Context](https://www.w3.org/TR/trace-context-1/#tracestate-header). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ I've replaces provisional (and unused) X-Trace
with optional Trace Context (Traceparent
, Tracestate
) and Server-Timing
headers, ensuring implementers align on the latest best practices
- If TTL value is unknown, implementations are free to set it to a static | ||
value, but it should not be lower than 60 seconds. | ||
- Implementations MAY place an upper bound on any TTL received, as | ||
noted in Section 8 of :cite[rfc2181]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ fixed a typo, it now points at DNS-related RFC
This editorial PR: replaces ambiguous 'free to' with SHOULD/MAY