Move RPC streaming notes from metric brief section to notes section (#275)
Co-authored-by: Joao Grassi <joao.grassi@dynatrace.com>
This commit is contained in:
parent
58b08c9dfb
commit
d7930d3ca5
|
|
@ -65,6 +65,8 @@ release.
|
||||||
([#276](https://github.com/open-telemetry/semantic-conventions/pull/276))
|
([#276](https://github.com/open-telemetry/semantic-conventions/pull/276))
|
||||||
- Add host cpu resource attributes.
|
- Add host cpu resource attributes.
|
||||||
([#209](https://github.com/open-telemetry/semantic-conventions/pull/209))
|
([#209](https://github.com/open-telemetry/semantic-conventions/pull/209))
|
||||||
|
- Moved RPC streaming notes from metric brief section to notes section.
|
||||||
|
([#275](https://github.com/open-telemetry/semantic-conventions/pull/275))
|
||||||
|
|
||||||
## v1.21.0 (2023-07-13)
|
## v1.21.0 (2023-07-13)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,10 +80,12 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.server.duration(metric_table) -->
|
<!-- semconv metric.rpc.server.duration(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.server.duration` | Histogram | `ms` | Measures the duration of inbound RPC. **Streaming**: N/A. [1] |
|
| `rpc.server.duration` | Histogram | `ms` | Measures the duration of inbound RPC. [1] |
|
||||||
|
|
||||||
**[1]:** While streaming RPCs may record this metric as start-of-batch
|
**[1]:** While streaming RPCs may record this metric as start-of-batch
|
||||||
to end-of-batch, it's hard to interpret in practice.
|
to end-of-batch, it's hard to interpret in practice.
|
||||||
|
|
||||||
|
**Streaming**: N/A.
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.server.request.size`
|
#### Metric: `rpc.server.request.size`
|
||||||
|
|
@ -93,7 +95,9 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.server.request.size(metric_table) -->
|
<!-- semconv metric.rpc.server.request.size(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.server.request.size` | Histogram | `By` | Measures the size of RPC request messages (uncompressed). **Streaming**: Recorded per message in a streaming batch |
|
| `rpc.server.request.size` | Histogram | `By` | Measures the size of RPC request messages (uncompressed). [1] |
|
||||||
|
|
||||||
|
**[1]:** **Streaming**: Recorded per message in a streaming batch
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.server.response.size`
|
#### Metric: `rpc.server.response.size`
|
||||||
|
|
@ -103,7 +107,9 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.server.response.size(metric_table) -->
|
<!-- semconv metric.rpc.server.response.size(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.server.response.size` | Histogram | `By` | Measures the size of RPC response messages (uncompressed). **Streaming**: Recorded per response in a streaming batch |
|
| `rpc.server.response.size` | Histogram | `By` | Measures the size of RPC response messages (uncompressed). [1] |
|
||||||
|
|
||||||
|
**[1]:** **Streaming**: Recorded per response in a streaming batch
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.server.requests_per_rpc`
|
#### Metric: `rpc.server.requests_per_rpc`
|
||||||
|
|
@ -113,7 +119,11 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.server.requests_per_rpc(metric_table) -->
|
<!-- semconv metric.rpc.server.requests_per_rpc(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.server.requests_per_rpc` | Histogram | `{count}` | Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs. **Streaming**: This metric is required for server and client streaming RPCs |
|
| `rpc.server.requests_per_rpc` | Histogram | `{count}` | Measures the number of messages received per RPC. [1] |
|
||||||
|
|
||||||
|
**[1]:** Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming** : This metric is required for server and client streaming RPCs
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.server.responses_per_rpc`
|
#### Metric: `rpc.server.responses_per_rpc`
|
||||||
|
|
@ -123,7 +133,11 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.server.responses_per_rpc(metric_table) -->
|
<!-- semconv metric.rpc.server.responses_per_rpc(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.server.responses_per_rpc` | Histogram | `{count}` | Measures the number of messages sent per RPC. Should be 1 for all non-streaming RPCs. **Streaming**: This metric is required for server and client streaming RPCs |
|
| `rpc.server.responses_per_rpc` | Histogram | `{count}` | Measures the number of messages sent per RPC. [1] |
|
||||||
|
|
||||||
|
**[1]:** Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming**: This metric is required for server and client streaming RPCs
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
### RPC Client
|
### RPC Client
|
||||||
|
|
@ -138,10 +152,12 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.client.duration(metric_table) -->
|
<!-- semconv metric.rpc.client.duration(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.client.duration` | Histogram | `ms` | Measures the duration of outbound RPC **Streaming**: N/A. [1] |
|
| `rpc.client.duration` | Histogram | `ms` | Measures the duration of outbound RPC. [1] |
|
||||||
|
|
||||||
**[1]:** While streaming RPCs may record this metric as start-of-batch
|
**[1]:** While streaming RPCs may record this metric as start-of-batch
|
||||||
to end-of-batch, it's hard to interpret in practice.
|
to end-of-batch, it's hard to interpret in practice.
|
||||||
|
|
||||||
|
**Streaming**: N/A.
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.client.request.size`
|
#### Metric: `rpc.client.request.size`
|
||||||
|
|
@ -151,7 +167,9 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.client.request.size(metric_table) -->
|
<!-- semconv metric.rpc.client.request.size(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.client.request.size` | Histogram | `By` | Measures the size of RPC request messages (uncompressed). **Streaming**: Recorded per message in a streaming batch |
|
| `rpc.client.request.size` | Histogram | `By` | Measures the size of RPC request messages (uncompressed). [1] |
|
||||||
|
|
||||||
|
**[1]:** **Streaming**: Recorded per message in a streaming batch
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.client.response.size`
|
#### Metric: `rpc.client.response.size`
|
||||||
|
|
@ -161,7 +179,9 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.client.response.size(metric_table) -->
|
<!-- semconv metric.rpc.client.response.size(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.client.response.size` | Histogram | `By` | Measures the size of RPC response messages (uncompressed). **Streaming**: Recorded per response in a streaming batch |
|
| `rpc.client.response.size` | Histogram | `By` | Measures the size of RPC response messages (uncompressed). [1] |
|
||||||
|
|
||||||
|
**[1]:** **Streaming**: Recorded per response in a streaming batch
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.client.requests_per_rpc`
|
#### Metric: `rpc.client.requests_per_rpc`
|
||||||
|
|
@ -171,7 +191,11 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.client.requests_per_rpc(metric_table) -->
|
<!-- semconv metric.rpc.client.requests_per_rpc(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.client.requests_per_rpc` | Histogram | `{count}` | Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs. **Streaming**: This metric is required for server and client streaming RPCs |
|
| `rpc.client.requests_per_rpc` | Histogram | `{count}` | Measures the number of messages received per RPC. [1] |
|
||||||
|
|
||||||
|
**[1]:** Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming**: This metric is required for server and client streaming RPCs
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
#### Metric: `rpc.client.responses_per_rpc`
|
#### Metric: `rpc.client.responses_per_rpc`
|
||||||
|
|
@ -181,7 +205,11 @@ This metric is [recommended][MetricRecommended].
|
||||||
<!-- semconv metric.rpc.client.responses_per_rpc(metric_table) -->
|
<!-- semconv metric.rpc.client.responses_per_rpc(metric_table) -->
|
||||||
| Name | Instrument Type | Unit (UCUM) | Description |
|
| Name | Instrument Type | Unit (UCUM) | Description |
|
||||||
| -------- | --------------- | ----------- | -------------- |
|
| -------- | --------------- | ----------- | -------------- |
|
||||||
| `rpc.client.responses_per_rpc` | Histogram | `{count}` | Measures the number of messages sent per RPC. Should be 1 for all non-streaming RPCs. **Streaming**: This metric is required for server and client streaming RPCs |
|
| `rpc.client.responses_per_rpc` | Histogram | `{count}` | Measures the number of messages sent per RPC. [1] |
|
||||||
|
|
||||||
|
**[1]:** Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming**: This metric is required for server and client streaming RPCs
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
## Attributes
|
## Attributes
|
||||||
|
|
|
||||||
|
|
@ -20,96 +20,104 @@ groups:
|
||||||
- id: metric.rpc.server.duration
|
- id: metric.rpc.server.duration
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.server.duration
|
metric_name: rpc.server.duration
|
||||||
brief: >
|
brief: Measures the duration of inbound RPC.
|
||||||
Measures the duration of inbound RPC.
|
|
||||||
**Streaming**: N/A.
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "ms"
|
unit: "ms"
|
||||||
note: |
|
note: |
|
||||||
While streaming RPCs may record this metric as start-of-batch
|
While streaming RPCs may record this metric as start-of-batch
|
||||||
to end-of-batch, it's hard to interpret in practice.
|
to end-of-batch, it's hard to interpret in practice.
|
||||||
|
|
||||||
|
**Streaming**: N/A.
|
||||||
|
|
||||||
- id: metric.rpc.server.request.size
|
- id: metric.rpc.server.request.size
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.server.request.size
|
metric_name: rpc.server.request.size
|
||||||
brief: >
|
brief: Measures the size of RPC request messages (uncompressed).
|
||||||
Measures the size of RPC request messages (uncompressed).
|
|
||||||
**Streaming**: Recorded per message in a streaming batch
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "By"
|
unit: "By"
|
||||||
|
note: |
|
||||||
|
**Streaming**: Recorded per message in a streaming batch
|
||||||
|
|
||||||
- id: metric.rpc.server.response.size
|
- id: metric.rpc.server.response.size
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.server.response.size
|
metric_name: rpc.server.response.size
|
||||||
brief: >
|
brief: Measures the size of RPC response messages (uncompressed).
|
||||||
Measures the size of RPC response messages (uncompressed).
|
|
||||||
**Streaming**: Recorded per response in a streaming batch
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "By"
|
unit: "By"
|
||||||
|
note: |
|
||||||
|
**Streaming**: Recorded per response in a streaming batch
|
||||||
|
|
||||||
- id: metric.rpc.server.requests_per_rpc
|
- id: metric.rpc.server.requests_per_rpc
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.server.requests_per_rpc
|
metric_name: rpc.server.requests_per_rpc
|
||||||
brief: >
|
brief: Measures the number of messages received per RPC.
|
||||||
Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs.
|
|
||||||
**Streaming**: This metric is required for server and client streaming RPCs
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "{count}"
|
unit: "{count}"
|
||||||
|
note: |
|
||||||
|
Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming** : This metric is required for server and client streaming RPCs
|
||||||
|
|
||||||
- id: metric.rpc.server.responses_per_rpc
|
- id: metric.rpc.server.responses_per_rpc
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.server.responses_per_rpc
|
metric_name: rpc.server.responses_per_rpc
|
||||||
brief: >
|
brief: Measures the number of messages sent per RPC.
|
||||||
Measures the number of messages sent per RPC. Should be 1 for all non-streaming RPCs.
|
|
||||||
**Streaming**: This metric is required for server and client streaming RPCs
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "{count}"
|
unit: "{count}"
|
||||||
|
note: |
|
||||||
|
Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming**: This metric is required for server and client streaming RPCs
|
||||||
|
|
||||||
# RPC Client metrics
|
# RPC Client metrics
|
||||||
- id: metric.rpc.client.duration
|
- id: metric.rpc.client.duration
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.client.duration
|
metric_name: rpc.client.duration
|
||||||
brief: >
|
brief: Measures the duration of outbound RPC.
|
||||||
Measures the duration of outbound RPC
|
|
||||||
**Streaming**: N/A.
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "ms"
|
unit: "ms"
|
||||||
note: |
|
note: |
|
||||||
While streaming RPCs may record this metric as start-of-batch
|
While streaming RPCs may record this metric as start-of-batch
|
||||||
to end-of-batch, it's hard to interpret in practice.
|
to end-of-batch, it's hard to interpret in practice.
|
||||||
|
|
||||||
|
**Streaming**: N/A.
|
||||||
|
|
||||||
- id: metric.rpc.client.request.size
|
- id: metric.rpc.client.request.size
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.client.request.size
|
metric_name: rpc.client.request.size
|
||||||
brief: >
|
brief: Measures the size of RPC request messages (uncompressed).
|
||||||
Measures the size of RPC request messages (uncompressed).
|
|
||||||
**Streaming**: Recorded per message in a streaming batch
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "By"
|
unit: "By"
|
||||||
|
note: |
|
||||||
|
**Streaming**: Recorded per message in a streaming batch
|
||||||
|
|
||||||
- id: metric.rpc.client.response.size
|
- id: metric.rpc.client.response.size
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.client.response.size
|
metric_name: rpc.client.response.size
|
||||||
brief: >
|
brief: Measures the size of RPC response messages (uncompressed).
|
||||||
Measures the size of RPC response messages (uncompressed).
|
|
||||||
**Streaming**: Recorded per response in a streaming batch
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "By"
|
unit: "By"
|
||||||
|
note: |
|
||||||
|
**Streaming**: Recorded per response in a streaming batch
|
||||||
|
|
||||||
- id: metric.rpc.client.requests_per_rpc
|
- id: metric.rpc.client.requests_per_rpc
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.client.requests_per_rpc
|
metric_name: rpc.client.requests_per_rpc
|
||||||
brief: >
|
brief: Measures the number of messages received per RPC.
|
||||||
Measures the number of messages received per RPC. Should be 1 for all non-streaming RPCs.
|
|
||||||
**Streaming**: This metric is required for server and client streaming RPCs
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "{count}"
|
unit: "{count}"
|
||||||
|
note: |
|
||||||
|
Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming**: This metric is required for server and client streaming RPCs
|
||||||
|
|
||||||
- id: metric.rpc.client.responses_per_rpc
|
- id: metric.rpc.client.responses_per_rpc
|
||||||
type: metric
|
type: metric
|
||||||
metric_name: rpc.client.responses_per_rpc
|
metric_name: rpc.client.responses_per_rpc
|
||||||
brief: >
|
brief: Measures the number of messages sent per RPC.
|
||||||
Measures the number of messages sent per RPC. Should be 1 for all non-streaming RPCs.
|
|
||||||
**Streaming**: This metric is required for server and client streaming RPCs
|
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: "{count}"
|
unit: "{count}"
|
||||||
|
note: |
|
||||||
|
Should be 1 for all non-streaming RPCs.
|
||||||
|
|
||||||
|
**Streaming**: This metric is required for server and client streaming RPCs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue