View Source Sentry.Attachment (Sentry v10.6.2)

A struct to represent an attachment.

You can send attachments over to Sentry alongside an event. See: https://develop.sentry.dev/sdk/envelopes/#attachment.

To add attachments, use Sentry.Context.add_attachment/1.

Available since v10.1.0.

Link to this section Summary

Types

t()

The type for the attachment struct.

Link to this section Types

@type t() :: %Sentry.Attachment{
  attachment_type: String.t() | nil,
  content_type: String.t() | nil,
  data: binary(),
  filename: String.t()
}

The type for the attachment struct.