-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
189 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
semantic-conventions/src/tests/data/markdown/stability/all_badges_expected.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- semconv test --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| [`test.deprecated_experimental_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.deprecated_stable_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.exp_attr`](stable_badges_expected.md) | boolean | ![Experimental](https://img.shields.io/badge/-experimental-blue)<br> | | Required | | ||
| [`test.stable_attr`](stable_badges_expected.md) | boolean | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br> | | Required | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv ref_test --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| [`test.deprecated_experimental_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.deprecated_stable_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.exp_attr`](stable_badges_expected.md) | boolean | ![Experimental](https://img.shields.io/badge/-experimental-blue)<br> | | Required | | ||
| [`test.stable_attr`](stable_badges_expected.md) | boolean | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br> | | Required | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv extends_test(full) --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| [`test.deprecated_experimental_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.deprecated_stable_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.exp_attr`](stable_badges_expected.md) | boolean | ![Experimental](https://img.shields.io/badge/-experimental-blue)<br> | | Required | | ||
| [`test.stable_attr`](stable_badges_expected.md) | boolean | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br> | | Required | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv stable_metric(metric_table) --> | ||
| Name | Instrument Type | Unit (UCUM) | Description | | ||
| -------- | --------------- | ----------- | -------------- | | ||
| `stable_metric` | Histogram | `s` | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br>stable_metric | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv experimental_metric(metric_table) --> | ||
| Name | Instrument Type | Unit (UCUM) | Description | | ||
| -------- | --------------- | ----------- | -------------- | | ||
| `experimental_metric` | Counter | `{e}` | ![Experimental](https://img.shields.io/badge/-experimental-blue)<br>experimental_metric | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv deprecated_metric(metric_table) --> | ||
| Name | Instrument Type | Unit (UCUM) | Description | | ||
| -------- | --------------- | ----------- | -------------- | | ||
| `deprecated_metric` | UpDownCounter | `{d}` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>deprecated_metric | | ||
<!-- endsemconv --> |
44 changes: 44 additions & 0 deletions
44
semantic-conventions/src/tests/data/markdown/stability/stable_badges_expected.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- semconv test --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| [`test.deprecated_experimental_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.deprecated_stable_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.exp_attr`](stable_badges_expected.md) | boolean | | | Required | | ||
| [`test.stable_attr`](stable_badges_expected.md) | boolean | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br> | | Required | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv ref_test --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| [`test.deprecated_experimental_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.deprecated_stable_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.exp_attr`](stable_badges_expected.md) | boolean | | | Required | | ||
| [`test.stable_attr`](stable_badges_expected.md) | boolean | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br> | | Required | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv extends_test(full) --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| [`test.deprecated_experimental_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.deprecated_stable_attr`](stable_badges_expected.md) | boolean | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br> | | Required | | ||
| [`test.exp_attr`](stable_badges_expected.md) | boolean | | | Required | | ||
| [`test.stable_attr`](stable_badges_expected.md) | boolean | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br> | | Required | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv stable_metric(metric_table) --> | ||
| Name | Instrument Type | Unit (UCUM) | Description | | ||
| -------- | --------------- | ----------- | -------------- | | ||
| `stable_metric` | Histogram | `s` | ![Stable](https://img.shields.io/badge/-stable-lightgreen)<br>stable_metric | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv experimental_metric(metric_table) --> | ||
| Name | Instrument Type | Unit (UCUM) | Description | | ||
| -------- | --------------- | ----------- | -------------- | | ||
| `experimental_metric` | Counter | `{e}` | experimental_metric | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv deprecated_metric(metric_table) --> | ||
| Name | Instrument Type | Unit (UCUM) | Description | | ||
| -------- | --------------- | ----------- | -------------- | | ||
| `deprecated_metric` | UpDownCounter | `{d}` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>deprecated_metric | | ||
<!-- endsemconv --> |
20 changes: 20 additions & 0 deletions
20
...ntic-conventions/src/tests/data/yaml/errors/deprecated/extends_overrides_deprecation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
groups: | ||
- id: test | ||
type: span | ||
prefix: test | ||
brief: "" | ||
span_kind: client | ||
attributes: | ||
- id: convention_version | ||
type: boolean | ||
brief: 'test' | ||
examples: [true, false] | ||
stability: experimental | ||
deprecated: "parent description" | ||
- id: test_child | ||
type: span | ||
brief: "" | ||
extends: test | ||
attributes: | ||
- ref: test.convention_version | ||
deprecated: "Removed" |
14 changes: 14 additions & 0 deletions
14
semantic-conventions/src/tests/data/yaml/errors/deprecated/multiple_deprecations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
groups: | ||
- id: test | ||
type: span | ||
prefix: test | ||
brief: 'This document defines semantic conventions for test.' | ||
span_kind: client | ||
attributes: | ||
- id: convention_version | ||
type: boolean | ||
deprecated: "first" | ||
deprecated: "second" | ||
brief: 'test' | ||
examples: [true, false] | ||
stability: experimental |
18 changes: 18 additions & 0 deletions
18
semantic-conventions/src/tests/data/yaml/errors/deprecated/ref_overrides_deprecation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
groups: | ||
- id: test | ||
type: span | ||
prefix: test | ||
brief: "" | ||
span_kind: client | ||
attributes: | ||
- id: convention_version | ||
type: boolean | ||
brief: 'test' | ||
examples: [true, false] | ||
stability: experimental | ||
- id: test_child | ||
type: span | ||
brief: "" | ||
attributes: | ||
- ref: test.convention_version | ||
deprecated: "Removed" |
16 changes: 16 additions & 0 deletions
16
semantic-conventions/src/tests/data/yaml/errors/stability/extends_override_stability.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
groups: | ||
- id: test | ||
type: attribute_group | ||
brief: 'test' | ||
attributes: | ||
- id: test_attr | ||
type: boolean | ||
brief: "" | ||
stability: experimental | ||
- id: test_child_1 | ||
type: attribute_group | ||
brief: 'test child' | ||
extends: test | ||
attributes: | ||
- ref: test_attr | ||
stability: stable |
8 changes: 8 additions & 0 deletions
8
semantic-conventions/src/tests/data/yaml/errors/stability/missing_stability_value.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
groups: | ||
- id: test | ||
type: attribute_group | ||
brief: 'test' | ||
attributes: | ||
- id: test_attr | ||
type: boolean | ||
brief: "" |
10 changes: 10 additions & 0 deletions
10
semantic-conventions/src/tests/data/yaml/errors/stability/multiple_stability_values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
groups: | ||
- id: test | ||
type: attribute_group | ||
brief: 'test' | ||
attributes: | ||
- id: test_attr | ||
type: boolean | ||
stability: stable | ||
stability: experimental | ||
brief: "" |
15 changes: 15 additions & 0 deletions
15
semantic-conventions/src/tests/data/yaml/errors/stability/ref_override_stability.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
groups: | ||
- id: test | ||
type: attribute_group | ||
brief: 'test' | ||
attributes: | ||
- id: test_attr | ||
type: boolean | ||
brief: "" | ||
stability: experimental | ||
- id: test_child_1 | ||
type: attribute_group | ||
brief: 'test child' | ||
attributes: | ||
- ref: test_attr | ||
stability: stable |