With the release of 1.24, we need to bump the tested versions. --------- Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| v1.5.0 | ||
| v1.6.1 | ||
| v1.7.0 | ||
| v1.8.0 | ||
| v1.9.0 | ||
| v1.10.0 | ||
| v1.11.0 | ||
| v1.12.0 | ||
| v1.13.0 | ||
| v1.16.0 | ||
| v1.17.0 | ||
| v1.18.0 | ||
| v1.21.0 | ||
| v1.22.0 | ||
| v1.25.0 | ||
| v1.26.0 | ||
| v1.27.0 | ||
| Makefile | ||
| README.md | ||
| go.mod | ||
| go.sum | ||
| package_test.go | ||
| semconv_test.go | ||
| template.j2 | ||
README.md
Semantic Convention Constants
This package contains constants representing the OpenTelemetry semantic conventions. They are automatically generated from definitions in the specification.
Generation
To generate the constants you can use the gensemconv make target. You must provide the path to the root of a clone of
the semantic-conventions repository in the SPECPATH variable and the version of the conventions to generate
in the SPECTAG variable.
$ make gensemconv SPECPATH=/tmp/semantic-conventions SPECTAG=v1.22.0
Generating semantic convention constants from specification version v1.22.0 at /tmp/semantic-conventions
.tools/semconvgen -o semconv/v1.22.0 -t semconv/template.j2 -s v1.22.0 -i /tmp/semantic-conventions/model/. --only=resource -p conventionType=resource -f generated_resource.go
.tools/semconvgen -o semconv/v1.22.0 -t semconv/template.j2 -s v1.22.0 -i /tmp/semantic-conventions/model/. --only=event -p conventionType=event -f generated_event.go
.tools/semconvgen -o semconv/v1.22.0 -t semconv/template.j2 -s v1.22.0 -i /tmp/semantic-conventions/model/. --only=span -p conventionType=trace -f generated_trace.go