View Source OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes (OpenTelemetry.SemConv v1.27.0)
OpenTelemetry Semantic Conventions for Feature_Flag attributes.
Summary
Functions
The unique identifier of the feature flag.
The name of the service provider that performs the flag evaluation.
SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used.
Functions
@spec feature_flag_key() :: :"feature_flag.key"
The unique identifier of the feature flag.
Value type
Value must be of type atom() | String.t()
.
Examples
["logo-color"]
iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.feature_flag_key()
:"feature_flag.key"
?FEATURE_FLAG_KEY.
'feature_flag.key'
@spec feature_flag_provider_name() :: :"feature_flag.provider_name"
The name of the service provider that performs the flag evaluation.
Value type
Value must be of type atom() | String.t()
.
Examples
["Flag Manager"]
iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.feature_flag_provider_name()
:"feature_flag.provider_name"
?FEATURE_FLAG_PROVIDER_NAME.
'feature_flag.provider_name'
@spec feature_flag_variant() :: :"feature_flag.variant"
SHOULD be a semantic identifier for a value. If one is unavailable, a stringified version of the value can be used.
Value type
Value must be of type atom() | String.t()
.
Notes
A semantic identifier, commonly referred to as a variant, provides a means
for referring to a value without including the value itself. This can
provide additional context for understanding the meaning behind a value.
For example, the variant red
maybe be used for the value #c05543
.
A stringified version of the value can be used in situations where a
semantic identifier is unavailable. String representation of the value
should be determined by the implementer.
Examples
["red", "true", "on"]
iex> OpenTelemetry.SemConv.Incubating.FeatureFlagAttributes.feature_flag_variant()
:"feature_flag.variant"
?FEATURE_FLAG_VARIANT.
'feature_flag.variant'