aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are hereHEADmaster
Diffstat (limited to '.venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py')
-rw-r--r--.venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py83
1 files changed, 83 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py b/.venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py
new file mode 100644
index 00000000..30b56abb
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/opentelemetry/semconv/_incubating/attributes/feature_flag_attributes.py
@@ -0,0 +1,83 @@
+# Copyright The OpenTelemetry Authors
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from enum import Enum
+from typing import Final
+
+FEATURE_FLAG_CONTEXT_ID: Final = "feature_flag.context.id"
+"""
+The unique identifier for the flag evaluation context. For example, the targeting key.
+"""
+
+FEATURE_FLAG_EVALUATION_ERROR_MESSAGE: Final = (
+ "feature_flag.evaluation.error.message"
+)
+"""
+A message explaining the nature of an error occurring during flag evaluation.
+"""
+
+FEATURE_FLAG_EVALUATION_REASON: Final = "feature_flag.evaluation.reason"
+"""
+The reason code which shows how a feature flag value was determined.
+"""
+
+FEATURE_FLAG_KEY: Final = "feature_flag.key"
+"""
+The lookup key of the feature flag.
+"""
+
+FEATURE_FLAG_PROVIDER_NAME: Final = "feature_flag.provider_name"
+"""
+Identifies the feature flag provider.
+"""
+
+FEATURE_FLAG_SET_ID: Final = "feature_flag.set.id"
+"""
+The identifier of the [flag set](https://openfeature.dev/specification/glossary/#flag-set) to which the feature flag belongs.
+"""
+
+FEATURE_FLAG_VARIANT: Final = "feature_flag.variant"
+"""
+A semantic identifier for an evaluated flag value.
+Note: 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`.
+"""
+
+FEATURE_FLAG_VERSION: Final = "feature_flag.version"
+"""
+The version of the ruleset used during the evaluation. This may be any stable value which uniquely identifies the ruleset.
+"""
+
+
+class FeatureFlagEvaluationReasonValues(Enum):
+ STATIC = "static"
+ """The resolved value is static (no dynamic evaluation)."""
+ DEFAULT = "default"
+ """The resolved value fell back to a pre-configured value (no dynamic evaluation occurred or dynamic evaluation yielded no result)."""
+ TARGETING_MATCH = "targeting_match"
+ """The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting."""
+ SPLIT = "split"
+ """The resolved value was the result of pseudorandom assignment."""
+ CACHED = "cached"
+ """The resolved value was retrieved from cache."""
+ DISABLED = "disabled"
+ """The resolved value was the result of the flag being disabled in the management system."""
+ UNKNOWN = "unknown"
+ """The reason for the resolved value could not be determined."""
+ STALE = "stale"
+ """The resolved value is non-authoritative or possibly out of date."""
+ ERROR = "error"
+ """The resolved value was the result of an error."""