@@ -17,7 +17,7 @@ val snapshot = true
1717// end
1818
1919// The release version of https://github.com/open-telemetry/semantic-conventions used to generate classes
20- var semanticConventionsVersion = " 1.22.0 "
20+ var semanticConventionsVersion = " 1.23.1 "
2121
2222// Compute the artifact version, which includes the "-alpha" suffix and includes "-SNAPSHOT" suffix if not releasing
2323// Release example: version=1.21.0-alpha
@@ -71,7 +71,7 @@ dependencies {
7171}
7272
7373// start - define tasks to download, unzip, and generate from opentelemetry/semantic-conventions
74- var generatorVersion = " 0.22 .0"
74+ var generatorVersion = " 0.23 .0"
7575val semanticConventionsRepoZip = " https://github.com/open-telemetry/semantic-conventions/archive/v$semanticConventionsVersion .zip"
7676val schemaUrl = " https://opentelemetry.io/schemas/$semanticConventionsVersion "
7777
@@ -105,11 +105,10 @@ val generateSemanticAttributes by tasks.registering(Exec::class) {
105105 " -v" , " $projectDir /buildscripts/templates:/templates" ,
106106 " -v" , " $projectDir /src/main/java/io/opentelemetry/semconv/:/output" ,
107107 " otel/semconvgen:$generatorVersion " ,
108- " --only" , " span,event,attribute_group,scope" ,
109- " -f " , " /source" , " code" ,
108+ " --only" , " span,event,attribute_group,scope,metric " ,
109+ " --yaml-root " , " /source" , " code" ,
110110 " --template" , " /templates/SemanticAttributes.java.j2" ,
111111 " --output" , " /output/SemanticAttributes.java" ,
112- " -Dsemconv=trace" ,
113112 " -Dclass=SemanticAttributes" ,
114113 " -DschemaUrl=$schemaUrl " ,
115114 " -Dpkg=io.opentelemetry.semconv" ))
@@ -128,7 +127,7 @@ val generateResourceAttributes by tasks.registering(Exec::class) {
128127 " -v" , " $projectDir /src/main/java/io/opentelemetry/semconv/:/output" ,
129128 " otel/semconvgen:$generatorVersion " ,
130129 " --only" , " resource" ,
131- " -f " , " /source" , " code" ,
130+ " --yaml-root " , " /source" , " code" ,
132131 " --template" , " /templates/SemanticAttributes.java.j2" ,
133132 " --output" , " /output/ResourceAttributes.java" ,
134133 " -Dclass=ResourceAttributes" ,
0 commit comments