pub struct AgentlessStatsTarget {
pub endpoint: Endpoint,
pub version: String,
}Expand description
Parameters needed to send stats directly to the Datadog intake.
This type is intentionally free of any Agent-specific concepts. hostname
and env for the StatsPayload are taken from the exporter’s
StatsMetadata; only intake-specific values live here.
Fields§
§endpoint: EndpointFull intake endpoint (e.g. https://trace.agent.<site>/api/v0.2/stats),
carrying the Datadog API key. send_with_retry derives the dd-api-key
header from Endpoint::api_key.
version: Stringagent_version field of the StatsPayload: the library version suffixed
with the language, so the backend can tell libdatadog tracers from the Agent.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AgentlessStatsTarget
impl RefUnwindSafe for AgentlessStatsTarget
impl Send for AgentlessStatsTarget
impl Sync for AgentlessStatsTarget
impl Unpin for AgentlessStatsTarget
impl UnsafeUnpin for AgentlessStatsTarget
impl UnwindSafe for AgentlessStatsTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more