View Source Sentry.Transaction (Sentry v10.9.0)
The struct for the transaction interface.
See https://develop.sentry.dev/sdk/data-model/event-payloads/transaction/.
Summary
Types
@type measurements() :: %{ optional(key :: atom()) => %{ :value => number(), optional(:unit) => String.t() } }
A map of measurements.
See here for the list of supported keys (which could change in the future).
@type t() :: %Sentry.Transaction{ contexts: %{ trace: %{ :trace_id => String.t(), :span_id => String.t(), optional(:parent_span_id) => String.t(), optional(:op) => String.t(), optional(:description) => String.t(), optional(:status) => String.t() } }, data: map(), environment: String.t(), event_id: Sentry.UUID.t(), measurements: measurements(), platform: String.t(), sdk: Sentry.Interfaces.SDK.t(), span_id: term(), spans: [Sentry.Interfaces.Span.t()], start_timestamp: String.t() | number(), tags: map(), timestamp: String.t() | number(), transaction: String.t(), transaction_info: transaction_info() }
@type transaction_info() :: %{source: String.t()}
Transaction information.
Should only be set by integrations and not developers directly.