-
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.
Sort attributes by name, not by source (#205)
- Loading branch information
Showing
27 changed files
with
339 additions
and
209 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
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
35 changes: 35 additions & 0 deletions
35
semantic-conventions/src/tests/data/markdown/extend_grandparent/database.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,35 @@ | ||
groups: | ||
- id: database.common_attributes | ||
prefix: db | ||
type: attribute_group | ||
brief: These attributes describe database calls. | ||
attributes: | ||
- id: name | ||
brief: Database name. | ||
type: string | ||
examples: [ 'the_shop' ] | ||
|
||
- id: database.foo.attributes | ||
prefix: db.foo | ||
type: attribute_group | ||
brief: These attributes describe database Foo calls. | ||
extends: database.common_attributes | ||
attributes: | ||
- id: bar | ||
brief: Some property. | ||
type: string | ||
examples: [ 'baz' ] | ||
|
||
- id: database.foo.span | ||
prefix: db.foo | ||
type: span | ||
brief: These attributes describe database Foo spans. | ||
extends: database.foo.attributes | ||
|
||
- id: database.foo.duration.metric | ||
type: metric | ||
metric_name: db.foo.duration | ||
instrument: histogram | ||
unit: s | ||
brief: Measures the duration of database Foo calls. | ||
extends: database.foo.attributes |
23 changes: 23 additions & 0 deletions
23
semantic-conventions/src/tests/data/markdown/extend_grandparent/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,23 @@ | ||
## DB spans | ||
|
||
<!-- semconv database.foo.span(full) --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| `db.foo.bar` | string | Some property. | `baz` | Recommended | | ||
| `db.name` | string | Database name. | `the_shop` | Recommended | | ||
<!-- endsemconv --> | ||
|
||
## DB metrics | ||
|
||
<!-- semconv database.foo.duration.metric(metric_table) --> | ||
| Name | Instrument Type | Unit (UCUM) | Description | | ||
| -------- | --------------- | ----------- | -------------- | | ||
| `db.foo.duration` | Histogram | `s` | Measures the duration of database Foo calls. | | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv database.foo.duration.metric(full) --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| `db.foo.bar` | string | Some property. | `baz` | Recommended | | ||
| `db.name` | string | Database name. | `the_shop` | Recommended | | ||
<!-- endsemconv --> |
12 changes: 12 additions & 0 deletions
12
semantic-conventions/src/tests/data/markdown/extend_grandparent/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,12 @@ | ||
## DB spans | ||
|
||
<!-- semconv database.foo.span(full) --> | ||
<!-- endsemconv --> | ||
|
||
## DB metrics | ||
|
||
<!-- semconv database.foo.duration.metric(metric_table) --> | ||
<!-- endsemconv --> | ||
|
||
<!-- semconv database.foo.duration.metric(full) --> | ||
<!-- 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
Oops, something went wrong.