@@ -31,6 +31,17 @@ docker run --rm \
31
31
--output /output/trace.rs \
32
32
--parameters conventions=trace
33
33
34
+ docker run --rm \
35
+ -v " ${CRATE_DIR} /semantic-conventions/model:/source" \
36
+ -v " ${CRATE_DIR} /scripts/templates:/templates" \
37
+ -v " ${CRATE_DIR} /src/semconv:/output" \
38
+ otel/semconvgen:$SEMCOVGEN_VERSION \
39
+ --only span,event,attribute_group,scope \
40
+ -f /source code \
41
+ --template /templates/semconv_semantic_attributes.rs.j2 \
42
+ --output /output/trace.rs \
43
+ --parameters conventions=trace
44
+
34
45
docker run --rm \
35
46
-v " ${CRATE_DIR} /semantic-conventions/model:/source" \
36
47
-v " ${CRATE_DIR} /scripts/templates:/templates" \
@@ -42,6 +53,18 @@ docker run --rm \
42
53
--output /output/resource.rs \
43
54
--parameters conventions=resource
44
55
56
+ docker run --rm \
57
+ -v " ${CRATE_DIR} /semantic-conventions/model:/source" \
58
+ -v " ${CRATE_DIR} /scripts/templates:/templates" \
59
+ -v " ${CRATE_DIR} /src/semconv:/output" \
60
+ otel/semconvgen:$SEMCOVGEN_VERSION \
61
+ --only resource \
62
+ -f /source code \
63
+ --template /templates/semconv_semantic_attributes.rs.j2 \
64
+ --output /output/resource.rs \
65
+ --parameters conventions=resource
66
+
67
+
45
68
# Keep `SCHEMA_URL` key in sync with spec version
46
69
sed -i " s/\(opentelemetry.io\/schemas\/\)[^\" ]*\" /\1$SPEC_VERSION \" /" src/lib.rs
47
70
0 commit comments