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

A map of measurements.

t()

Transaction information.

Types

Link to this type

measurements()

View Source (since 11.0.0)
@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()
}
Link to this type

transaction_info()

View Source (since 11.0.0)
@type transaction_info() :: %{source: String.t()}

Transaction information.

Should only be set by integrations and not developers directly.