File tree Expand file tree Collapse file tree
src/main/kotlin/com/monta/otel/extension Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ repositories {
1313}
1414
1515dependencies {
16- val otelVersion = " 2.10.0 "
16+ val otelVersion = " 2.13.3 "
1717 implementation(platform(" io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:$otelVersion -alpha" ))
1818 implementation(" io.opentelemetry:opentelemetry-sdk-extension-autoconfigure" )
1919 implementation(" io.opentelemetry.semconv:opentelemetry-semconv" )
Original file line number Diff line number Diff line change 66import io .opentelemetry .sdk .autoconfigure .spi .AutoConfigurationCustomizerProvider ;
77import io .opentelemetry .sdk .resources .Resource ;
88import io .opentelemetry .sdk .trace .samplers .Sampler ;
9- import io .opentelemetry .semconv .ResourceAttributes ;
109import io .opentelemetry .semconv .ServiceAttributes ;
1110import io .opentelemetry .semconv .UrlAttributes ;
1211
@@ -26,9 +25,9 @@ public void customize(AutoConfigurationCustomizer autoConfiguration) {
2625 autoConfiguration .addResourceCustomizer ((resource , configProperties ) ->
2726 resource .merge (
2827 Resource .builder ()
29- .put (ResourceAttributes . SERVICE_INSTANCE_ID , UUID .randomUUID ().toString ())
28+ .put ("service.instance.id" , UUID .randomUUID ().toString ())
3029 .put (ServiceAttributes .SERVICE_NAME , System .getenv ("SERVICE_NAME" ))
31- .put (ResourceAttributes . DEPLOYMENT_ENVIRONMENT , System .getenv ("STAGE" ))
30+ .put ("deployment.environment.name" , System .getenv ("STAGE" ))
3231 .put (ServiceAttributes .SERVICE_VERSION , System .getenv ("BUILD_NUMBER" ))
3332 .build ()
3433 )
You can’t perform that action at this time.
0 commit comments