From 519a8de805761d55325daed7a1f8b65252bc3b01 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Mon, 13 Jan 2025 06:24:46 -0500 Subject: [PATCH] chore: update min SDK version (#1152) Signed-off-by: Todd Baert Co-authored-by: Simon Schrottner --- .../java/dev/openfeature/contrib/hooks/otel/MetricsHook.java | 2 +- .../dev/openfeature/contrib/hooks/otel/MetricsHookTest.java | 2 +- pom.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/MetricsHook.java b/hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/MetricsHook.java index 10b1bf288..9f798e3f5 100644 --- a/hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/MetricsHook.java +++ b/hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/MetricsHook.java @@ -134,7 +134,7 @@ public void error(HookContext ctx, Exception error, Map hints) { } @Override - public void finallyAfter(HookContext ctx, Map hints) { + public void finallyAfter(HookContext ctx, FlagEvaluationDetails details, Map hints) { activeFlagEvaluationsCounter.add(-1, Attributes.of(flagKeyAttributeKey, ctx.getFlagKey())); } diff --git a/hooks/open-telemetry/src/test/java/dev/openfeature/contrib/hooks/otel/MetricsHookTest.java b/hooks/open-telemetry/src/test/java/dev/openfeature/contrib/hooks/otel/MetricsHookTest.java index 942f82c01..1d521e0ce 100644 --- a/hooks/open-telemetry/src/test/java/dev/openfeature/contrib/hooks/otel/MetricsHookTest.java +++ b/hooks/open-telemetry/src/test/java/dev/openfeature/contrib/hooks/otel/MetricsHookTest.java @@ -188,7 +188,7 @@ public void finally_stage_validation() { final MetricsHook metricHook = new MetricsHook(telemetryExtension.getOpenTelemetry()); // when - metricHook.finallyAfter(commonHookContext, null); + metricHook.finallyAfter(commonHookContext, null, null); List metrics = telemetryExtension.getMetrics(); // then diff --git a/pom.xml b/pom.xml index 29e949122..cafc1767c 100644 --- a/pom.xml +++ b/pom.xml @@ -67,8 +67,8 @@ dev.openfeature sdk - - [1.12,2.0) + + [1.14,1.99999) provided