-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update build tools to support embedding of attribute implemented in w…
…eaver
- Loading branch information
Showing
7 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
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
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
17 changes: 17 additions & 0 deletions
17
semantic-conventions/src/tests/data/markdown/ref_embed/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,17 @@ | ||
# Server | ||
|
||
<!-- semconv registry.geo(full) --> | ||
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability | | ||
|---|---|---|---|---|---| | ||
| `geo.country` | string | country of the geo coordinates. | `US` | `Recommended` | Experimental | | ||
| `geo.lat` | string | latitude of the geo coordinates. | `123.456` | `Recommended` | Experimental | | ||
| `geo.lon` | string | longitude of the geo coordinates. | `234.456` | `Recommended` | Experimental | | ||
<!-- endsemconv --> | ||
|
||
|
||
<!-- semconv registry.server(full) --> | ||
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability | | ||
|---|---|---|---|---|---| | ||
| `server.geo.lat` | string | My own latitude | `123.456` | `Recommended` | Experimental | | ||
| `server.id` | string | some server id | `123` | `Recommended` | Experimental | | ||
<!-- endsemconv --> |
24 changes: 24 additions & 0 deletions
24
semantic-conventions/src/tests/data/markdown/ref_embed/geo.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,24 @@ | ||
groups: | ||
- id: registry.geo | ||
brief: Attributes describing geo. | ||
type: attribute_group | ||
prefix: geo | ||
attributes: | ||
- id: lat | ||
type: string | ||
stability: experimental | ||
brief: > | ||
latitude of the geo coordinates. | ||
examples: ["123.456"] | ||
- id: lon | ||
type: string | ||
stability: experimental | ||
brief: > | ||
longitude of the geo coordinates. | ||
examples: [ "234.456" ] | ||
- id: country | ||
type: string | ||
stability: experimental | ||
brief: > | ||
country of the geo coordinates. | ||
examples: [ "US" ] |
8 changes: 8 additions & 0 deletions
8
semantic-conventions/src/tests/data/markdown/ref_embed/input.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,8 @@ | ||
# Server | ||
|
||
<!-- semconv registry.geo(full) --> | ||
<!-- endsemconv --> | ||
|
||
|
||
<!-- semconv registry.server(full) --> | ||
<!-- endsemconv --> |
15 changes: 15 additions & 0 deletions
15
semantic-conventions/src/tests/data/markdown/ref_embed/server.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: registry.server | ||
prefix: server | ||
type: attribute_group | ||
brief: "Describes information about the server." | ||
attributes: | ||
- id: id | ||
type: string | ||
stability: experimental | ||
brief: > | ||
some server id | ||
examples: ['123'] | ||
- ref: geo.lat | ||
prefix: true | ||
brief: My own latitude |
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