Spandex v1.0.3 Spandex.Datadog.Span View Source
In charge of holding the datadog span attributes, and for starting/ending
spans. This also handles serialization via to_map/1
, and span inheritance
via child_of/3
Link to this section Summary
Functions
Creates new span based on parent span
Creates new struct with defaults from :spandex configuration
Sets completion time for given span if it’s missing as unix epoch in nanoseconds
Creates a final map structure suitable for datadog trace agent
Updates span with given map. Only @updateable_keys
are allowed for updates
Link to this section Types
t() :: %Spandex.Datadog.Span{completion_time: term, env: term, error: term, error_message: term, error_type: term, id: term, meta: term, method: term, name: term, parent_id: term, resource: term, service: term, sql_db: term, sql_query: term, sql_rows: term, stacktrace: term, start: term, status: term, trace_id: term, type: term, url: term, user: term}
Link to this section Functions
Creates new span based on parent span.
Creates new struct with defaults from :spandex configuration.
Sets completion time for given span if it’s missing as unix epoch in nanoseconds.
Creates a final map structure suitable for datadog trace agent.
Updates span with given map. Only @updateable_keys
are allowed for updates.