FeatureFlag enum

feature_flag.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.

Inheritance
Implemented types
Available extensions

Values

featureFlagContextId → const FeatureFlag

The unique identifier for the flag evaluation context. For example, the targeting key.

Examples: 5157782b-2203-4c80-a857-dbbd5e7761db

Stability: release_candidate

const FeatureFlag('feature_flag.context.id')
featureFlagErrorMessage → const FeatureFlag

A message providing more detail about an error that occurred during feature flag evaluation in human-readable form.

Examples: Unexpected input type: string, The user has exceeded their storage quota

Stability: release_candidate

const FeatureFlag('feature_flag.error.message')
featureFlagEvaluationErrorMessage → const FeatureFlag

Deprecated, use feature_flag.error.message instead.

Examples: Flag 'header-color' expected type 'string' but found type 'number'

Stability: development

const FeatureFlag('feature_flag.evaluation.error.message')
featureFlagEvaluationReason → const FeatureFlag

Deprecated, use feature_flag.result.reason instead.

Examples: static, targeting_match, error, default

Stability: development

const FeatureFlag('feature_flag.evaluation.reason')
featureFlagKey → const FeatureFlag

The lookup key of the feature flag.

Examples: logo-color

Stability: release_candidate

const FeatureFlag('feature_flag.key')
featureFlagProviderName → const FeatureFlag

Identifies the feature flag provider.

Examples: Flag Manager

Stability: release_candidate

const FeatureFlag('feature_flag.provider.name')
featureFlagResultReason → const FeatureFlag

The reason code which shows how a feature flag value was determined.

Examples: static, targeting_match, error, default

Stability: release_candidate

const FeatureFlag('feature_flag.result.reason')
featureFlagResultValue → const FeatureFlag

The evaluated value of the feature flag.

Examples: #ff0000, true, 3

Stability: release_candidate

const FeatureFlag('feature_flag.result.value')
featureFlagResultVariant → const FeatureFlag

A semantic identifier for an evaluated flag value.

Examples: red, true, on

Stability: release_candidate

const FeatureFlag('feature_flag.result.variant')
featureFlagSetId → const FeatureFlag

The identifier of the flag set to which the feature flag belongs.

Examples: proj-1, ab98sgs, service1/dev

Stability: release_candidate

const FeatureFlag('feature_flag.set.id')
featureFlagVariant → const FeatureFlag

Deprecated, use feature_flag.result.variant instead.

Examples: red, true, on

Stability: development

const FeatureFlag('feature_flag.variant')
featureFlagVersion → const FeatureFlag

The version of the ruleset used during the evaluation. This may be any stable value which uniquely identifies the ruleset.

Examples: 1, 01ABCDEF

Stability: release_candidate

const FeatureFlag('feature_flag.version')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
key → String
The attribute key string as defined in the OpenTelemetry specification.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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
toMapEntry(Object value) → MapEntry<String, Object>

Available on OTelSemantic, provided by the OTelSemanticExtension extension

Converts this semantic attribute and its value to a MapEntry.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<FeatureFlag>
A constant List of the values in this enum, in order of their declaration.