Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Sep 5, 2023
1 parent a1f681f commit 9ac8f70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/http/http-spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ and various HTTP versions like 1.1, 2 and SPDY.

HTTP spans MUST follow the overall [guidelines for span names](https://github.com/open-telemetry/opentelemetry-specification/tree/v1.22.0/specification/trace/api.md#span).

HTTP server span names SHOULD be `{method} {http.route}` (see below for the exact definition of the `{method}` placeholder) if there is a
(low-cardinality) `http.route` available,
HTTP server span names SHOULD be `{method} {http.route}` if there is a
(low-cardinality) `http.route` available (see below for the exact definition of the [`{method}`](#method-placeholder) placeholder).

If there is no (low-cardinality) `http.route` available, HTTP server span names
SHOULD be `{method}` (see below for the exact definition of the `{method}` placeholder)
SHOULD be [`{method}`](#method-placeholder).

HTTP client spans have no `http.route` attribute since client-side instrumentation
is not generally aware of the "route", and therefore HTTP client spans SHOULD be
`{method}`.
[`{method}`](#method-placeholder).

The `{method}` MUST be `{http.request.method}` if the method represents the original method known to the instrumentation.
The <span name="method-placeholder">`{method}`</span> MUST be `{http.request.method}` if the method represents the original method known to the instrumentation.
In other cases (when `{http.request.method}` is set to `_OTHER`), `{method}` MUST be `HTTP`.

Instrumentation MUST NOT default to using URI
Expand Down

0 comments on commit 9ac8f70

Please sign in to comment.