HttpTelemetryAttributes
class HttpTelemetryAttributes
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 32
__construct(bool $recordQuery, array $sensitiveQueryParameters, array $sensitiveHeaders, array $requestHeaders, array $responseHeaders)
Create shared HTTP attribute normalization.
at line 71
array
requestHeaderAttributes(array $headers)
Return configured request-header attributes.
at line 82
array
responseHeaderAttributes(array $headers)
Return configured response-header attributes.
at line 90
string|null
query(string|null $query)
Return a redacted query string when query capture is enabled.
at line 121
string|null
protocolVersion(string|null $protocolVersion)
Return the version component from a server protocol token.
at line 135
int|null
contentLength(string|null $value)
Return a valid non-negative content length.
at line 151
string
fullUrl(UriInterface $uri)
Return a client URL with configured query detail and redacted credentials.
at line 167
string
spanName(string $method, string|null $target = null)
Return a low-cardinality HTTP span name.
at line 181
protected array
headerAttributes(array $headers, array $allowlist, string $prefix)
Return allowlisted header attributes.
at line 210
protected array
set(array $values)
Convert a string list into a lowercase lookup set.