Constant OTEL_SDK_EXPORTER_LOG_EXPORTED
pub const OTEL_SDK_EXPORTER_LOG_EXPORTED: &'static str;
Expand description
§Description
The number of log records for which the export has finished, either successful or failed
§Notes
For successful exports, error.type
MUST NOT be set. For failed exports, error.type
MUST contain the failure cause.
For exporters with partial success semantics (e.g. OTLP with rejected_log_records
), rejected log records MUST count as failed and only non-rejected log records count as success.
If no rejection reason is available, rejected
SHOULD be used as value for error.type
§Metadata
Instrument: | counter |
Unit: | {log_record} |
Status: | Development |
§Attributes
Name | Requirement |
---|---|
crate::attribute::ERROR_TYPE | Recommended |
crate::attribute::OTEL_COMPONENT_NAME | Recommended |
crate::attribute::OTEL_COMPONENT_TYPE | Recommended |
crate::attribute::SERVER_ADDRESS | {"recommended": "when applicable"} |
crate::attribute::SERVER_PORT | {"recommended": "when applicable"} |