-
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.
Add scope semantic conventions as a type (#114)
Co-authored-by: Joao Grassi <[email protected]>
- Loading branch information
1 parent
f871418
commit bbd48be
Showing
10 changed files
with
68 additions
and
2 deletions.
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
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
7 changes: 7 additions & 0 deletions
7
semantic-conventions/src/tests/data/markdown/scope/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,7 @@ | ||
# Instrumentation Scope Semantic Conventions | ||
|
||
<!-- semconv scope --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| `short_name` | string | The single-word name for the instrumentation scope. | `mylibrary` | Recommended | | ||
<!-- endsemconv --> |
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,4 @@ | ||
# Instrumentation Scope Semantic Conventions | ||
|
||
<!-- semconv scope --> | ||
<!-- endsemconv --> |
13 changes: 13 additions & 0 deletions
13
semantic-conventions/src/tests/data/markdown/scope/scope.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,13 @@ | ||
groups: | ||
- id: scope | ||
prefix: "" | ||
type: scope | ||
brief: > | ||
Instrumentation Scope attributes | ||
attributes: | ||
- id: short_name | ||
type: string | ||
requirement_level: recommended | ||
brief: > | ||
The single-word name for the instrumentation scope. | ||
examples: ['mylibrary'] |
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,13 @@ | ||
groups: | ||
- id: scope-id | ||
prefix: "" | ||
type: scope | ||
brief: > | ||
Instrumentation Scope attributes | ||
attributes: | ||
- id: short_name | ||
type: string | ||
requirement_level: recommended | ||
brief: > | ||
The single-word name for the instrumentation scope. | ||
examples: ['mylibrary'] |
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
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