|
2 | 2 |
|
3 | 3 | ## Semantic Convention Generation |
4 | 4 |
|
5 | | -New versions of the [OpenTelemetry Specification] mean new versions of the `semconv` package need to be generated. |
| 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 Specification] to the desired release tag. |
| 8 | +1. Checkout a local copy of the [OpenTelemetry Semantic Conventions] to the desired release tag. |
9 | 9 | 2. Pull the latest `otel/semconvgen` image: `docker pull otel/semconvgen:latest` |
10 | 10 | 3. Run the `make semconv-generate ...` target from this repository. |
11 | 11 |
|
12 | 12 | For example, |
13 | 13 |
|
14 | 14 | ```sh |
15 | | -export TAG="v1.13.0" # Change to the release version you are generating. |
16 | | -export OTEL_SPEC_REPO="/absolute/path/to/opentelemetry-specification" |
| 15 | +export TAG="v1.21.0" # Change to the release version you are generating. |
| 16 | +export OTEL_SEMCONV_REPO="/absolute/path/to/opentelemetry/semantic-conventions" |
17 | 17 | docker pull otel/semconvgen:latest |
18 | | -make semconv-generate # Uses the exported TAG and OTEL_SPEC_REPO. |
| 18 | +make semconv-generate # Uses the exported TAG and OTEL_SEMCONV_REPO. |
19 | 19 | ``` |
20 | 20 |
|
21 | 21 | This should create a new sub-package of [`semconv`](./semconv). |
22 | 22 | Ensure things look correct before submitting a pull request to include the addition. |
23 | 23 |
|
24 | | -**Note**, the generation code was changed to generate versions >= 1.13. |
25 | | -To generate versions prior to this, checkout the old release of this repository (i.e. [2fe8861](https://github.com/open-telemetry/opentelemetry-go/commit/2fe8861a24e20088c065b116089862caf9e3cd8b)). |
26 | | - |
27 | 24 | ## Pre-Release |
28 | 25 |
|
29 | 26 | First, decide which module sets will be released and update their versions |
@@ -123,7 +120,7 @@ Once verified be sure to [make a release for the `contrib` repository](https://g |
123 | 120 | Update the [Go instrumentation documentation] in the OpenTelemetry website under [content/en/docs/instrumentation/go]. |
124 | 121 | Importantly, bump any package versions referenced to be the latest one you just released and ensure all code examples still compile and are accurate. |
125 | 122 |
|
126 | | -[OpenTelemetry Specification]: https://github.com/open-telemetry/opentelemetry-specification |
| 123 | +[OpenTelemetry Semantic Conventions]: https://github.com/open-telemetry/semantic-conventions |
127 | 124 | [Go instrumentation documentation]: https://opentelemetry.io/docs/instrumentation/go/ |
128 | 125 | [content/en/docs/instrumentation/go]: https://github.com/open-telemetry/opentelemetry.io/tree/main/content/en/docs/instrumentation/go |
129 | 126 |
|
|
0 commit comments