File tree 3 files changed +11
-7
lines changed
src/main/java/dev/openfeature/contrib/hooks/otel
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change
1
+ java=8.0.312-tem
Original file line number Diff line number Diff line change 39
39
40
40
<dependencies >
41
41
<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 >
45
45
</dependency >
46
46
47
47
<dependency >
Original file line number Diff line number Diff line change 1
1
package dev .openfeature .contrib .hooks .otel ;
2
2
3
3
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 ;
5
8
6
9
class OTelCommons {
7
10
// Define semantic conventions
8
11
// Refer - https://opentelemetry.io/docs/specs/otel/logs/semantic_conventions/feature-flags/
9
12
static final String EVENT_NAME = "feature_flag" ;
10
13
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 ;
14
17
15
18
// Define non convention attribute keys
16
19
static final String REASON_KEY = "reason" ;
You can’t perform that action at this time.
0 commit comments