SentryEnvelope.fromUserFeedback constructor

  1. @Deprecated('Will be removed in a future version.')
SentryEnvelope.fromUserFeedback(
  1. SentryUserFeedback feedback,
  2. SdkVersion sdkVersion, {
  3. String? dsn,
})

Implementation

@Deprecated('Will be removed in a future version.')
factory SentryEnvelope.fromUserFeedback(
  SentryUserFeedback feedback,
  SdkVersion sdkVersion, {
  String? dsn,
}) {
  return SentryEnvelope(
    // no need for [traceContext]
    SentryEnvelopeHeader(
      feedback.eventId,
      sdkVersion,
      dsn: dsn,
    ),
    [SentryEnvelopeItem.fromUserFeedback(feedback)],
  );
}