@@ -17,7 +17,7 @@ val snapshot = true
17
17
// end
18
18
19
19
// 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 "
21
21
22
22
// Compute the artifact version, which includes the "-alpha" suffix and includes "-SNAPSHOT" suffix if not releasing
23
23
// Release example: version=1.21.0-alpha
@@ -71,7 +71,7 @@ dependencies {
71
71
}
72
72
73
73
// start - define tasks to download, unzip, and generate from opentelemetry/semantic-conventions
74
- var generatorVersion = " 0.22 .0"
74
+ var generatorVersion = " 0.23 .0"
75
75
val semanticConventionsRepoZip = " https://github.com/open-telemetry/semantic-conventions/archive/v$semanticConventionsVersion .zip"
76
76
val schemaUrl = " https://opentelemetry.io/schemas/$semanticConventionsVersion "
77
77
@@ -105,11 +105,10 @@ val generateSemanticAttributes by tasks.registering(Exec::class) {
105
105
" -v" , " $projectDir /buildscripts/templates:/templates" ,
106
106
" -v" , " $projectDir /src/main/java/io/opentelemetry/semconv/:/output" ,
107
107
" 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" ,
110
110
" --template" , " /templates/SemanticAttributes.java.j2" ,
111
111
" --output" , " /output/SemanticAttributes.java" ,
112
- " -Dsemconv=trace" ,
113
112
" -Dclass=SemanticAttributes" ,
114
113
" -DschemaUrl=$schemaUrl " ,
115
114
" -Dpkg=io.opentelemetry.semconv" ))
@@ -128,7 +127,7 @@ val generateResourceAttributes by tasks.registering(Exec::class) {
128
127
" -v" , " $projectDir /src/main/java/io/opentelemetry/semconv/:/output" ,
129
128
" otel/semconvgen:$generatorVersion " ,
130
129
" --only" , " resource" ,
131
- " -f " , " /source" , " code" ,
130
+ " --yaml-root " , " /source" , " code" ,
132
131
" --template" , " /templates/SemanticAttributes.java.j2" ,
133
132
" --output" , " /output/ResourceAttributes.java" ,
134
133
" -Dclass=ResourceAttributes" ,
0 commit comments