HttpHeaderAttribute class
Enum for HTTP header attributes with dynamic keys Usage:
String methodKey = HttpAttributes.requestMethod.key;
Utility class for creating OpenTelemetry HTTP header attribute keys.
This class provides a way to generate properly formatted HTTP header attribute keys
following the OpenTelemetry specification for HTTP headers.
Constructors
- HttpHeaderAttribute.request(String headerName)
- Constructor for HTTP request headers Example usage: HttpHeaderAttribute.request('content-type')
- HttpHeaderAttribute.response(String headerName)
- Constructor for HTTP response headers Example usage: HttpHeaderAttribute.response('content-type')
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited