OpenTelemetryUtil class
Utility class for generating OpenTelemetry-compatible telemetry from feature flag evaluations
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
createOTelAttributes(
{required String flagKey, required dynamic value, String? providerName, String? variant, String reason = OTelFeatureFlagConstants.REASON_DEFAULT, Map< String, dynamic> ? evaluationContext}) → OTelAttributes - Creates OpenTelemetry-compatible attributes for a feature flag evaluation
-
fromEvaluationDetails(
EvaluationDetails details, {String? providerName}) → OTelAttributes - Creates OpenTelemetry-compatible attributes from EvaluationDetails
-
fromHookContext(
HookContext context, {String? providerName, String? reason}) → OTelAttributes - Creates OpenTelemetry-compatible attributes from HookContext