HttpTelemetryAttributes
class HttpTelemetryAttributes
Constants
| REQUEST_BODY_SIZE |
|
| RESPONSE_BODY_SIZE |
|
Properties
| protected array<string, true> | $sensitiveQueryParameters | ||
| protected array<string, true> | $sensitiveHeaders | ||
| protected array<string, true> | $requestHeaders | ||
| protected array<string, true> | $responseHeaders |
Methods
Create shared HTTP attribute normalization.
Return configured request-header attributes.
Return configured response-header attributes.
Return a redacted query string when query capture is enabled.
Return the version component from a server protocol token.
Return a valid non-negative content length.
Return a client URL with configured query detail and redacted credentials.
Return a low-cardinality HTTP span name.
Return allowlisted header attributes.
Convert a string list into a lowercase lookup set.
Details
at line 38
__construct(bool $recordQuery, array $sensitiveQueryParameters, array $sensitiveHeaders, array $requestHeaders, array $responseHeaders)
Create shared HTTP attribute normalization.
at line 77
array
requestHeaderAttributes(array $headers)
Return configured request-header attributes.
at line 88
array
responseHeaderAttributes(array $headers)
Return configured response-header attributes.
at line 96
string|null
query(string|null $query)
Return a redacted query string when query capture is enabled.
at line 127
string|null
protocolVersion(string|null $protocolVersion)
Return the version component from a server protocol token.
at line 141
int|null
contentLength(string|null $value)
Return a valid non-negative content length.
at line 157
string
fullUrl(UriInterface $uri)
Return a client URL with configured query detail and redacted credentials.
at line 173
string
spanName(string $method, string|null $target = null)
Return a low-cardinality HTTP span name.
at line 187
protected array
headerAttributes(array $headers, array $allowlist, string $prefix)
Return allowlisted header attributes.
at line 216
protected array
set(array $values)
Convert a string list into a lowercase lookup set.