-
Notifications
You must be signed in to change notification settings - Fork 59
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
6 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
semantic-conventions/src/tests/data/markdown/sampling_relevant/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,27 @@ | ||
# Attributes | ||
|
||
<!-- semconv http --> | ||
| Attribute | Type | Description | Examples | Required | | ||
|---|---|---|---|---| | ||
| `http.method` | string | . | `GET` | Yes | | ||
| `http.url` | string | . | `.` | No | | ||
| `http.target` | string | . | `.` | No | | ||
| `http.host` | string | . | `.` | No | | ||
| `http.scheme` | string | . | `http` | No | | ||
| `http.status_code` | int | . | | . | | ||
| `http.user_agent` | string | . | `.` | No | | ||
| [`net.peer.ip`](span-general.md) | string | . | `.` | No | | ||
| [`net.peer.name`](span-general.md) | string | . | `.` | No | | ||
| [`net.peer.port`](span-general.md) | int | . | | No | | ||
|
||
Following attributes MUST be provided **at span creation time** (when provided at all): | ||
|
||
* `http.method` | ||
* `http.url` | ||
* `http.target` | ||
* `http.host` | ||
* `http.scheme` | ||
* [`net.peer.ip`](span-general.md) | ||
* [`net.peer.name`](span-general.md) | ||
* [`net.peer.port`](span-general.md) | ||
<!-- endsemconv --> |
19 changes: 19 additions & 0 deletions
19
semantic-conventions/src/tests/data/markdown/sampling_relevant/general.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,19 @@ | ||
groups: | ||
- id: network | ||
type: span | ||
prefix: net | ||
brief: > | ||
These attributes may be used for any network related operation. | ||
attributes: | ||
- id: peer.ip | ||
type: string | ||
brief: . | ||
examples: '.' | ||
- id: peer.port | ||
type: int | ||
brief: . | ||
examples: [] | ||
- id: peer.name | ||
type: string | ||
brief: . | ||
examples: '.' |
49 changes: 49 additions & 0 deletions
49
semantic-conventions/src/tests/data/markdown/sampling_relevant/http.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,49 @@ | ||
groups: | ||
- id: http | ||
prefix: http | ||
brief: 'This document defines semantic conventions for HTTP client and server Spans.' | ||
attributes: | ||
- id: method | ||
type: string | ||
required: always | ||
brief: . | ||
sampling_relevant: true | ||
examples: ["GET"] | ||
- id: url | ||
type: string | ||
brief: . | ||
sampling_relevant: true | ||
examples: ['.'] | ||
- id: target | ||
type: string | ||
brief: . | ||
sampling_relevant: true | ||
examples: ['.'] | ||
- id: host | ||
type: string | ||
brief: . | ||
sampling_relevant: true | ||
examples: ['.'] | ||
- id: scheme | ||
type: string | ||
brief: . | ||
sampling_relevant: true | ||
examples: ["http"] | ||
- id: status_code | ||
type: int | ||
required: | ||
conditional: . | ||
brief: . | ||
examples: [] | ||
- id: user_agent | ||
type: string | ||
brief: . | ||
examples: ['.'] | ||
- ref: net.peer.name | ||
sampling_relevant: true | ||
- ref: net.peer.ip | ||
sampling_relevant: true | ||
- ref: net.peer.port | ||
sampling_relevant: true | ||
constraints: | ||
- include: network |
5 changes: 5 additions & 0 deletions
5
semantic-conventions/src/tests/data/markdown/sampling_relevant/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,5 @@ | ||
# Attributes | ||
|
||
<!-- semconv http --> | ||
|
||
<!-- endsemconv --> |
5 changes: 5 additions & 0 deletions
5
semantic-conventions/src/tests/data/markdown/sampling_relevant/span-general.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,5 @@ | ||
# General | ||
|
||
<!-- semconv network --> | ||
|
||
<!-- 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