Skip to content

Commit

Permalink
Rename otel to otel_span
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Oct 6, 2022
1 parent 64fa2b4 commit 5d7128e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions semantic_conventions/trace/exporter/exporter.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
groups:
- id: otel
- id: otel_span
prefix: otel
type: span
brief: Span attributes used by non OTLP exporters to represent OpenTelemetry Span's concepts.
Expand All @@ -9,13 +9,13 @@ groups:
allow_custom_values: false
members:
- id: ok
value: ok
value: OK
brief: 'The operation has been validated by an Application developer or Operator to have completed successfully.'
- id: error
value: error
value: ERROR
brief: 'The operation contains an error.'
brief: Name of the code, either OK or ERROR. MUST NOT be set if the status code is UNSET.
- id: status_message
- id: status_description
type: string
brief: Description of the Status if it has a value otherwise not set.
examples: ['resource not found']
12 changes: 6 additions & 6 deletions specification/common/mapping-to-non-otlp.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ unless the `Status` is `UNSET`. In the latter case it MUST NOT be reported.
The following table defines the OpenTelemetry `Status`'s mapping to Span's
key-value pairs:

<!-- semconv otel -->
<!-- semconv otel_span -->
| Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---|
| `otel.status_code` | string | Name of the code, either OK or ERROR. MUST NOT be set if the status code is UNSET. | `ok` | Recommended |
| `otel.status_message` | string | Description of the Status if it has a value otherwise not set. | `resource not found` | Recommended |
| `otel.status_code` | string | Name of the code, either OK or ERROR. MUST NOT be set if the status code is UNSET. | `OK` | Recommended |
| `otel.status_description` | string | Description of the Status if it has a value otherwise not set. | `resource not found` | Recommended |

`otel.status_code` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
`otel.status_code` MUST be one of the following:

| Value | Description |
|---|---|
| `ok` | The operation has been validated by an Application developer or Operator to have completed successfully. |
| `error` | The operation contains an error. |
| `OK` | The operation has been validated by an Application developer or Operator to have completed successfully. |
| `ERROR` | The operation contains an error. |
<!-- endsemconv -->

### Dropped Attributes Count
Expand Down

0 comments on commit 5d7128e

Please sign in to comment.