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
@@ -126,6 +126,8 @@ The YAML (model definition) and Markdown (documentation) files are organized in
126
126
│ │ ├── ....md
127
127
├── model
128
128
│ ├── {root-namespace}
129
+
│ │ ├── deprecated
130
+
│ │ | ├── registry-deprecated.yaml
129
131
│ │ ├── events.yaml
130
132
│ │ ├── metrics.yaml
131
133
│ │ ├── registry.yaml
@@ -146,6 +148,9 @@ HTTP spans are defined in `model/http/spans.yaml`.
146
148
YAML definitions could be broken down into multiple files. For example, AWS spans
147
149
are defined in `/model/aws/lambda-spans.yaml` and `/model/aws/sdk-spans.yaml` files.
148
150
151
+
Deprecated conventions should be placed under `/model/{root-namespace}/deprecated`
152
+
folder.
153
+
149
154
#### Schema files
150
155
151
156
When making changes to existing semantic conventions (attributes, metrics, etc)
@@ -157,6 +162,7 @@ For details, please read
157
162
You can also take examples from past changes inside the `schemas` folder.
158
163
159
164
> [!WARNING]
165
+
>
160
166
> DO NOT add your changes to files inside the `schemas` folder. Always add your
161
167
> changes to the `schema-next.yaml` file.
162
168
@@ -187,7 +193,21 @@ When creating new markdown files, you should provide the `linkTitle` attribute.
187
193
This is used to generate the navigation bar on the website,
188
194
and will be listed relative to the "parent" document.
189
195
190
-
### 3. Verify the changes before committing
196
+
### 3. Check new convention
197
+
198
+
Semantic conventions are validated for name formatting and backward compatibility with last released versions.
199
+
Here's [the full list of compatibility checks](./policies/compatibility.rego).
200
+
201
+
Removing attributes, metrics, or enum members is not allowed, they should be deprecated instead.
202
+
It applies to stable and experimental conventions and prevents semantic conventions auto-generated libraries from introducing breaking changes.
203
+
204
+
You can run backward compatibility check (along with other policies) in all yaml files with the following command:
205
+
206
+
```bash
207
+
make check-policies
208
+
```
209
+
210
+
### 4. Verify the changes before committing
191
211
192
212
Before sending a PR with your changes, make sure to run the automated checks:
193
213
@@ -198,7 +218,7 @@ make check
198
218
Alternatively, you can run each check individually.
199
219
Refer to the [Automation](#automation) section for more details.
200
220
201
-
### 4. Changelog
221
+
### 5. Changelog
202
222
203
223
#### When to add a Changelog Entry
204
224
@@ -361,18 +381,6 @@ To check the validity of links in all markdown files, run the following command:
361
381
make markdown-link-check
362
382
```
363
383
364
-
### Version compatibility check
365
-
366
-
Semantic conventions are validated for backward compatibility with last released versions. Here's [the full list of compatibility checks](./policies/compatibility.rego).
367
-
Removing attributes, metrics, or enum members is not allowed, they should be deprecated instead.
368
-
It applies to stable and experimental conventions and prevents semantic conventions auto-generated libraries from introducing breaking changes.
369
-
370
-
You can run backward compatibility check (along with other policies) in all yaml files with the following command:
371
-
372
-
```bash
373
-
make check-policies
374
-
```
375
-
376
384
## Updating the referenced specification version
377
385
378
386
1. Open the `./internal/tools/update_specification_version.sh` script.
git diff --exit-code ':*.md'|| (echo 'Generated markdown Table of Contents is out of date, please run "make markdown-toc" and commit the changes in this PR.'&&exit 1)
Copy file name to clipboardExpand all lines: docs/attributes-registry/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,16 @@ The attributes registry is the place where attributes are defined. An attribute
16
16
- a `brief` description of the attribute and optionally a longer `note`
17
17
- example values
18
18
19
-
Attributes defined in the registry can be used in different semantic conventions. Attributes should be included in this registry before they are used in semantic conventions. Semantic conventions may override all the properties of an attribute except for the `id`and `type` in case it's required for a particular context. In addition, semantic conventions specify the requirement level of an attribute in the corresponding context.
19
+
Attributes defined in the registry can be used in different semantic conventions. Attributes should be included in this registry before they are used in semantic conventions. Semantic conventions may override all the properties of an attribute except for the `id`, `type`and `stability` in case it's required for a particular context. In addition, semantic conventions specify the requirement level of an attribute in the corresponding context.
20
20
21
21
A definition of an attribute in the registry doesn't necessarily imply that the attribute is used in any of the semantic conventions.
22
22
23
23
If applicable, application developers are encouraged to use existing attributes from this registry. See also [these recommendations][developers recommendations] regarding attribute selection and attribute naming for custom use cases.
24
24
25
25
All registered attributes are listed by namespace in this registry.
26
26
27
-
> **Warning**
27
+
> [!WARNING]
28
+
>
28
29
> The following registry overview is a work in progress.
29
30
>
30
31
> Further attribute namespaces are currently being migrated and will appear in this registry soon.
@@ -45,12 +46,12 @@ Currently, the following namespaces exist:
Copy file name to clipboardExpand all lines: docs/gen-ai/gen-ai-events.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,8 @@ linkTitle: Generative AI events
25
25
26
26
GenAI instrumentations MAY capture user inputs sent to the model and responses received from it as [events](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.40.0/specification/logs/api.md#emit-an-event).
27
27
28
-
<<<<<<< HEAD
29
-
> [!NOTE]
30
-
> Event API is experimental and not yet available in some languages. Check [spec-compliance matrix](https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md#events) to see the implementation status in corresponding language.
31
-
=======
32
28
> Note:
33
29
> Event API is experimental and not yet available in some languages. Check [spec-compliance matrix](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.40.0/spec-compliance-matrix.md#logs) to see the implementation status in corresponding language.
34
-
>>>>>>> 75746bc9 (reword)
35
30
36
31
Instrumentations MAY capture inputs and outputs if and only if application has enabled the collection of this data.
Copy file name to clipboardExpand all lines: templates/registry/markdown/readme.md.j2
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,16 @@ The attributes registry is the place where attributes are defined. An attribute
17
17
- a `brief` description of the attribute and optionally a longer `note`
18
18
- example values
19
19
20
-
Attributes defined in the registry can be used in different semantic conventions. Attributes should be included in this registry before they are used in semantic conventions. Semantic conventions may override all the properties of an attribute except for the `id`and `type` in case it's required for a particular context. In addition, semantic conventions specify the requirement level of an attribute in the corresponding context.
20
+
Attributes defined in the registry can be used in different semantic conventions. Attributes should be included in this registry before they are used in semantic conventions. Semantic conventions may override all the properties of an attribute except for the `id`, `type` and `stability` in case it's required for a particular context. In addition, semantic conventions specify the requirement level of an attribute in the corresponding context.
21
21
22
22
A definition of an attribute in the registry doesn't necessarily imply that the attribute is used in any of the semantic conventions.
23
23
24
24
If applicable, application developers are encouraged to use existing attributes from this registry. See also [these recommendations][developers recommendations] regarding attribute selection and attribute naming for custom use cases.
25
25
26
26
All registered attributes are listed by namespace in this registry.
27
27
28
-
> **Warning**
28
+
> [!WARNING]
29
+
>
29
30
> The following registry overview is a work in progress.
30
31
>
31
32
> Further attribute namespaces are currently being migrated and will appear in this registry soon.
0 commit comments