Skip to main content

Module trace_utils

Module trace_utils 

Source

Re-exports§

pub use crate::send_data::send_data_result::SendDataResult;
pub use crate::send_data::SendData;
pub use crate::tracer_header_tags::TracerHeaderTags;

Structs§

MiniAgentMetadata
RootSpanTags
Tags gathered from a trace’s root span

Enums§

EnvironmentType

Constants§

MAX_PAYLOAD_SIZE
The maximum payload size for a single request that can be sent to the trace agent. Payloads larger than this size will be dropped and the agent will return a 413 error if datadog-send-real-http-status is set.

Functions§

coalesce_send_data
collect_pb_trace_chunks
collect_trace_chunks
compute_top_level_span
Updates all the spans top-level attribute. A span is considered top-level if:
enrich_span_with_azure_function_metadata
enrich_span_with_google_cloud_function_metadata
enrich_span_with_mini_agent_metadata
get_root_span_index
get_traces_from_request_body
First value of returned tuple is the payload size
get_v05_traces_from_request_body
has_top_level
Return true if the span has a top level key set
is_measured
Returns true if a span should be measured (i.e., it should get trace metrics calculated).
is_partial_snapshot
Returns true if the span is a partial snapshot. This kind of spans are partial images of long-running spans. When incomplete, a partial snapshot has a metric _dd.partial_version which is a positive integer. The metric usually increases each time a new version of the same span is sent by the tracer
set_serverless_root_span_tags