You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/non-normative/code-generation.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Language SIGs that ship semantic conventions library may decide to ship a stable
28
28
Possible solutions include:
29
29
30
30
- Generate all Semantic Conventions for a given version in specific folder while keeping old versions intact. It is used by [opentelemetry-go](https://github.com/open-telemetry/opentelemetry-go/tree/main/semconv/) but could be problematic if the artifact size is a concern.
31
-
- Follow language-specific conventions to annotate experimental parts. For example, Semantic Conventions in Python puts experimental attributes in `opentelemetry.semconv._incubating` import path which is considered (following Python underscore convention) to be internal and subject to change.
31
+
- Follow language-specific conventions to annotate unstable parts. For example, Semantic Conventions in Python puts unstable attributes in `opentelemetry.semconv._incubating` import path which is considered (following Python underscore convention) to be internal and subject to change.
32
32
- Ship two different artifacts: one that contains stable Semantic Conventions and another one with all available conventions. For example, [semantic-conventions in Java](https://github.com/open-telemetry/semantic-conventions-java) are shipped in two artifacts: `opentelemetry-semconv` and `opentelemetry-semconv-incubating`.
33
33
34
34
> Note:
@@ -37,16 +37,16 @@ Possible solutions include:
37
37
> experimental conventions, the latter would be resolved leading to compilation or runtime issues in the application.
38
38
39
39
Instrumentation libraries should depend on the stable (part of) semantic convention artifact or copy relevant definitions into their own code base.
40
-
Experimental semantic conventions are intended for end-user applications.
40
+
Unstable semantic conventions artifact is intended for end-user applications.
41
41
42
42
### Deprecated Conventions
43
43
44
44
It's recommended to generate code for deprecated attributes, metrics, and other conventions. Use appropriate annotations to mark them as deprecated.
45
-
Conventions have a `stability` property which provide the stability level at the deprecation time (`experimental` or `stable`) and
45
+
Conventions have a `stability` property which provide the stability level at the deprecation time (`development`, `alpha`, `beta`, `release_candidate` or `stable`) and
46
46
the `deprecated` property that describes deprecation reason which can be used to generate documentation.
47
47
48
48
- Deprecated conventions that reached stability should not be removed without major version update according to SemVer.
49
-
- Conventions that were deprecated while being experimental should still be generated and kept in the preview (part of) semantic conventions artifact. It minimizes runtime issues
49
+
- Conventions that were deprecated while being unstable should still be generated and kept in the preview (part of) semantic conventions artifact. It minimizes runtime issues
50
50
and breaking changes in user applications.
51
51
52
52
Keep stable convention definitions inside the preview (part of) semantic conversions artifact. It prevents user code from breaking when semantic convention stabilizes. Deprecate stable definitions inside the preview artifact and point users to the stable location in generated documentation.
@@ -58,7 +58,7 @@ This section contains suggestions on how to structure semantic convention artifa
58
58
59
59
- Artifact name:
60
60
-`opentelemetry-semconv` - stable conventions
61
-
-`opentelemetry-semconv-incubating` - (if applicable) the preview artifact containing all (stable and experimental) conventions
61
+
-`opentelemetry-semconv-incubating` - (if applicable) the preview artifact containing all (stable and unstable) conventions
62
62
- Namespace: `opentelemetry.semconv` and `opentelemetry.semconv.incubating`
63
63
- All supported Schema URLs should be listed to allow different instrumentations in the same application to provide the exact version of conventions they follow.
64
64
- Attributes, metrics, and other convention definitions should be grouped by the convention type and the root namespace. See the example below:
@@ -181,7 +181,6 @@ Notable changes on helper methods:
0 commit comments