Constant OTEL_SDK_EXPORTER_OPERATION_DURATION
pub const OTEL_SDK_EXPORTER_OPERATION_DURATION: &'static str;Available on crate features
opentelemetry and semconv_experimental only.Expand description
§Description
The duration of exporting a batch of telemetry records.
§Notes
This metric defines successful operations using the full success definitions for http
and grpc. Anything else is defined as an unsuccessful operation. For successful
operations, error.type MUST NOT be set. For unsuccessful export operations, error.type MUST contain a relevant failure cause.
If the exporter retries failed export attempts, exactly one observation MUST be recorded per export operation,
covering the wall-clock duration from the start of the first attempt through the conclusion of the final attempt (including any backoff between attempts).
error.type reflects the cause of the final attempt
§Metadata
| Instrument: | histogram |
| Unit: | s |
| Status: | Development |
§Attributes
| Name | Requirement |
|---|---|
crate::attribute::ERROR_TYPE | Conditionally_required: If operation has ended with an error |
crate::attribute::HTTP_RESPONSE_STATUS_CODE | {"recommended": "when applicable"} |
crate::attribute::OTEL_COMPONENT_NAME | Recommended |
crate::attribute::OTEL_COMPONENT_TYPE | Recommended |
crate::attribute::RPC_RESPONSE_STATUS_CODE | {"recommended": "when applicable"} |
crate::attribute::SERVER_ADDRESS | {"recommended": "when applicable"} |
crate::attribute::SERVER_PORT | {"recommended": "when applicable"} |