File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
src/main/java/dev/openfeature/contrib/hooks/otel Expand file tree Collapse file tree 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 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 >
Original file line number Diff line number Diff line change 11package dev .openfeature .contrib .hooks .otel ;
22
33import 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
69class 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" ;
You can’t perform that action at this time.
0 commit comments