Skip to content

Commit 1a86d27

Browse files
committed
chore: rename extra attributes method
Signed-off-by: Danju Visvanathan <danju.visvanathan@gmail.com>
1 parent f9fb358 commit 1a86d27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • hooks/openfeature-hooks-opentelemetry/src/openfeature/contrib/hook/opentelemetry

hooks/openfeature-hooks-opentelemetry/src/openfeature/contrib/hook/opentelemetry/metric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def after(
5454
attributes[Attributes.OTEL_PROVIDER_NAME] = (
5555
hook_context.provider_metadata.name
5656
)
57-
attributes = attributes | attributes_from_dimensions(
57+
attributes = attributes | get_extra_attributes(
5858
self.extra_attributes, details.flag_metadata
5959
)
6060
self.evaluation_success_total.add(1, attributes)
@@ -88,7 +88,7 @@ def finally_after(
8888
self.evaluation_active_count.add(-1, attributes)
8989

9090

91-
def attributes_from_dimensions(
91+
def get_extra_attributes(
9292
extra_attributes: list[str], metadata: FlagMetadata
9393
) -> dict[str, AttributeValue]:
9494
attributes: dict[str, AttributeValue] = {}

0 commit comments

Comments
 (0)