pub struct TelemetryCapabilities {
pub logs: Option<Uri>,
pub traces: Option<Uri>,
pub metrics: Option<Uri>,
}Expand description
OTLP telemetry channels the agent host emits.
Each field, when present, is either a literal channel URI or an RFC 6570 URI template a client expands and then subscribes to. Absent fields indicate the host does not emit that signal.
Channel URIs use the ahp-otlp: scheme. The scheme identifies the
protocol (OpenTelemetry over AHP) so clients can recognise the channel
type by URI alone; the host is free to choose any authority/path that
makes sense for its implementation. Clients MUST treat the URI as
opaque (apart from expanding any well-known template variables defined
below) and subscribe with the resulting concrete URI.
Payloads delivered on these channels are OTLP/JSON values — see
opentelemetry-proto
for the wire shapes (ExportLogsServiceRequest,
ExportTraceServiceRequest, ExportMetricsServiceRequest).
Fields§
§logs: Option<Uri>Channel URI (or RFC 6570 URI template) for OTLP log records
(otlp/exportLogs notifications).
The following template variables are defined by this protocol; any other variable name MUST be ignored by clients (there is no protocol-defined way to obtain values for unknown variables):
| Variables in template | Meaning |
|---|---|
| (none) | The host does not support subscriber-side severity filtering. The template is itself a subscribable URI. |
{level} | Minimum OTLP severity to deliver. Expand to one of the OTLP SeverityNumber short names (case-insensitive): trace, debug, info, warn, error, fatal. The server delivers log records whose severityNumber falls in the corresponding band or above. |
Hosts SHOULD honour the expanded {level}; clients MUST still filter
defensively in case a host ignores the parameter. Hosts that do not
advertise {level} deliver all severities.
Future protocol versions MAY add new well-known variables (e.g. scope or attribute filters).
traces: Option<Uri>Channel URI for OTLP spans (otlp/exportTraces notifications). No
template variables are defined by this protocol version.
metrics: Option<Uri>Channel URI for OTLP metric data points (otlp/exportMetrics
notifications). No template variables are defined by this protocol
version.
Trait Implementations§
Source§impl Clone for TelemetryCapabilities
impl Clone for TelemetryCapabilities
Source§fn clone(&self) -> TelemetryCapabilities
fn clone(&self) -> TelemetryCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TelemetryCapabilities
impl Debug for TelemetryCapabilities
Source§impl Default for TelemetryCapabilities
impl Default for TelemetryCapabilities
Source§fn default() -> TelemetryCapabilities
fn default() -> TelemetryCapabilities
Source§impl<'de> Deserialize<'de> for TelemetryCapabilities
impl<'de> Deserialize<'de> for TelemetryCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TelemetryCapabilities
impl PartialEq for TelemetryCapabilities
Source§fn eq(&self, other: &TelemetryCapabilities) -> bool
fn eq(&self, other: &TelemetryCapabilities) -> bool
self and other values to be equal, and is used by ==.