Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .chloggen/http-known-methods-declarative-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
change_type: enhancement
component: http
note: Defined declarative configuration for overriding known HTTP methods.
issues: [3394]
7 changes: 5 additions & 2 deletions docs/db/elasticsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down
56 changes: 40 additions & 16 deletions docs/http/http-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -227,8 +230,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -307,8 +313,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -442,8 +451,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -582,8 +594,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -696,8 +711,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -810,8 +828,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -1016,8 +1037,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down
14 changes: 10 additions & 4 deletions docs/http/http-spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down Expand Up @@ -482,8 +485,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down
7 changes: 5 additions & 2 deletions docs/registry/attributes/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ If the HTTP request method is not known to instrumentation, it MUST set the `htt

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down
7 changes: 5 additions & 2 deletions model/http/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ groups:

If the HTTP instrumentation could end up converting valid HTTP request methods to `_OTHER`, then it MUST provide a way to override
the list of known HTTP methods. If this override is done via environment variable, then the environment variable MUST be named
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods
(this list MUST be a full override of the default known method, it is not a list of known methods in addition to the defaults).
OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS and support a comma-separated list of case-sensitive known HTTP methods.
If this override is done via declarative configuration, then the list MUST be configurable via the `known_methods` property
(an array of strings with minimum items 0) under `.instrumentation/development.general.http.client` and/or
`.instrumentation/development.general.http.server`. In either case, this list MUST be a full override of the default known methods,
it is not a list of known methods in addition to the defaults.

HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Expand Down
Loading