We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9fb358 commit 1a86d27Copy full SHA for 1a86d27
1 file changed
hooks/openfeature-hooks-opentelemetry/src/openfeature/contrib/hook/opentelemetry/metric.py
@@ -54,7 +54,7 @@ def after(
54
attributes[Attributes.OTEL_PROVIDER_NAME] = (
55
hook_context.provider_metadata.name
56
)
57
- attributes = attributes | attributes_from_dimensions(
+ attributes = attributes | get_extra_attributes(
58
self.extra_attributes, details.flag_metadata
59
60
self.evaluation_success_total.add(1, attributes)
@@ -88,7 +88,7 @@ def finally_after(
88
self.evaluation_active_count.add(-1, attributes)
89
90
91
-def attributes_from_dimensions(
+def get_extra_attributes(
92
extra_attributes: list[str], metadata: FlagMetadata
93
) -> dict[str, AttributeValue]:
94
attributes: dict[str, AttributeValue] = {}
0 commit comments