Skip to content
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

Merged
merged 1 commit into from
Jul 4, 2023
Merged

style: 'free to' → SHOULD/MAY #424

merged 1 commit into from
Jul 4, 2023

Conversation

lidel
Copy link
Member

@lidel lidel commented Jul 3, 2023

This editorial PR: replaces ambiguous 'free to' with SHOULD/MAY

This replaces ambigous 'free to' with SHOULD/MAY
and also replaces provisional (and unused) `X-Trace`  with optional
Trace Context and Server Timing headers.
@lidel lidel requested review from darobin and hacdias July 3, 2023 12:08
Comment on lines +542 to +562
### `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).
Copy link
Member Author

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].
Copy link
Member Author

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

@lidel lidel merged commit 97d2b27 into main Jul 4, 2023
2 checks passed
@lidel lidel deleted the style/remove-free-to branch July 4, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants