Skip to content

Commit

Permalink
add note on method case-sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed May 8, 2023
1 parent 318a998 commit 789d5da
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 85 deletions.
4 changes: 3 additions & 1 deletion semantic_conventions/http-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ groups:
requirement_level: required
brief: 'HTTP request method.'
examples: ["GET", "POST", "HEAD"]
note: >
note: |
HTTP request method SHOULD be one of the methods defined in [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-methods)
or the PATCH method defined in [RFC5789](https://www.rfc-editor.org/rfc/rfc5789.html).
Instrumentation MAY additionally support the closed set of custom HTTP methods defined in
[HTTP method registry](https://www.iana.org/assignments/http-methods/http-methods.xhtml) or a private registry.
Instrumentation MUST set the `http.method` attribute to `OTHER` if the HTTP request method is not known to the instrumentation.
HTTP method names are case-sensitive and `http.method` attribute value MUST match a standard (or documented elsewhere) HTTP method name exactly.
- id: status_code
type: int
requirement_level:
Expand Down
Loading

0 comments on commit 789d5da

Please sign in to comment.