Skip to content

Commit 18d2557

Browse files
authored
fix(deps): move to io.opentelemetry.semconv:opentelemetry-semconv (#1041)
Signed-off-by: Robert Elliot <[email protected]>
1 parent 4b8aa85 commit 18d2557

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.sdkmanrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
java=8.0.312-tem

hooks/open-telemetry/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939

4040
<dependencies>
4141
<dependency>
42-
<groupId>io.opentelemetry</groupId>
43-
<artifactId>opentelemetry-semconv</artifactId>
44-
<version>1.30.1-alpha</version>
42+
<groupId>io.opentelemetry.semconv</groupId>
43+
<artifactId>opentelemetry-semconv-incubating</artifactId>
44+
<version>1.28.0-alpha</version>
4545
</dependency>
4646

4747
<dependency>

hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/OTelCommons.java

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
package dev.openfeature.contrib.hooks.otel;
22

33
import io.opentelemetry.api.common.AttributeKey;
4-
import io.opentelemetry.semconv.trace.attributes.SemanticAttributes;
4+
5+
import static io.opentelemetry.semconv.incubating.FeatureFlagIncubatingAttributes.FEATURE_FLAG_KEY;
6+
import static io.opentelemetry.semconv.incubating.FeatureFlagIncubatingAttributes.FEATURE_FLAG_PROVIDER_NAME;
7+
import static io.opentelemetry.semconv.incubating.FeatureFlagIncubatingAttributes.FEATURE_FLAG_VARIANT;
58

69
class OTelCommons {
710
// Define semantic conventions
811
// Refer - https://opentelemetry.io/docs/specs/otel/logs/semantic_conventions/feature-flags/
912
static final String EVENT_NAME = "feature_flag";
1013

11-
static final AttributeKey<String> flagKeyAttributeKey = SemanticAttributes.FEATURE_FLAG_KEY;
12-
static final AttributeKey<String> providerNameAttributeKey = SemanticAttributes.FEATURE_FLAG_PROVIDER_NAME;
13-
static final AttributeKey<String> variantAttributeKey = SemanticAttributes.FEATURE_FLAG_VARIANT;
14+
static final AttributeKey<String> flagKeyAttributeKey = FEATURE_FLAG_KEY;
15+
static final AttributeKey<String> providerNameAttributeKey = FEATURE_FLAG_PROVIDER_NAME;
16+
static final AttributeKey<String> variantAttributeKey = FEATURE_FLAG_VARIANT;
1417

1518
// Define non convention attribute keys
1619
static final String REASON_KEY = "reason";

0 commit comments

Comments
 (0)