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

hashCode int
The hash code for this object.
no setterinherited
key String
The OpenTelemetry attribute key for the HTTP header.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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