View Source Sentry.Attachment (Sentry v10.8.0)

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.

Summary

Types

t()

The type for the attachment struct.

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.