File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,6 @@ SEMCONVPKG ?= "semconv/"
276
276
.PHONY : semconv-generate
277
277
semconv-generate : $(SEMCONVKIT )
278
278
[ " $( TAG) " ] || ( echo " TAG unset: missing opentelemetry semantic-conventions tag" ; exit 1 )
279
- [ " $( SEMCONV_REPO) " ] || ( echo " SEMCONV_REPO unset: missing path to opentelemetry semantic-conventions repo" ; exit 1 )
280
279
# Ensure the target directory for source code is available.
281
280
mkdir -p $(PWD ) /$(SEMCONVPKG ) /${TAG}
282
281
# Note: We mount a home directory for downloading/storing the semconv repository.
@@ -285,12 +284,11 @@ semconv-generate: $(SEMCONVKIT)
285
284
docker run --rm \
286
285
-u $(DOCKER_USER ) \
287
286
--env HOME=/tmp/weaver \
288
- --mount ' type=bind,source=$(SEMCONV_REPO),target=/source,readonly' \
289
287
--mount ' type=bind,source=$(PWD)/semconv,target=/home/weaver/templates/registry/go,readonly' \
290
288
--mount ' type=bind,source=$(PWD)/semconv/${TAG},target=/home/weaver/target' \
291
289
--mount ' type=bind,source=$(HOME)/.weaver,target=/tmp/weaver/.weaver' \
292
290
$(WEAVER_IMAGE ) registry generate \
293
- --registry=/source/ model \
291
+ --registry=https://github.com/open-telemetry/semantic-conventions/archive/refs/tags/ $( TAG ) .zip[ model] \
294
292
--templates=/home/weaver/templates \
295
293
--param tag=$(TAG ) \
296
294
go \
Original file line number Diff line number Diff line change 5
5
New versions of the [ OpenTelemetry Semantic Conventions] mean new versions of the ` semconv ` package need to be generated.
6
6
The ` semconv-generate ` make target is used for this.
7
7
8
- 1 . Checkout a local copy of the [ OpenTelemetry Semantic Conventions ] to the desired release tag.
8
+ 1 . Set the ` TAG ` environment variable to the semantic convention tag you want to generate .
9
9
2 . Run the ` make semconv-generate ... ` target from this repository.
10
10
11
11
For example,
12
12
13
13
``` sh
14
- export TAG=" v1.21.0" # Change to the release version you are generating.
15
- export OTEL_SEMCONV_REPO=" /absolute/path/to/opentelemetry/semantic-conventions"
16
- make semconv-generate # Uses the exported TAG and OTEL_SEMCONV_REPO.
14
+ export TAG=" v1.30.0" # Change to the release version you are generating.
15
+ make semconv-generate # Uses the exported TAG.
17
16
```
18
17
19
18
This should create a new sub-package of [ ` semconv ` ] ( ./semconv ) .
You can’t perform that action at this time.
0 commit comments