File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1616- Add attachments to ` Hint ` ([ #1404 ] ( https://github.com/getsentry/sentry-dart/pull/1404 ) )
1717
1818``` dart
19- import 'dart:convert';
20-
21- options.beforeSend = (event, {hint}) {
22- final text = 'This event should not be sent happen in prod. Investigate.';
23- final textAttachment = SentryAttachment.fromIntList(
24- utf8.encode(text),
25- 'event_info.txt',
26- contentType: 'text/plain',
27- );
28- hint?.attachments.add(textAttachment);
29- return event;
30- };
19+ import 'dart:convert';
20+
21+ options.beforeSend = (event, {hint}) {
22+ final text = 'This event should not be sent happen in prod. Investigate.';
23+ final textAttachment = SentryAttachment.fromIntList(
24+ utf8.encode(text),
25+ 'event_info.txt',
26+ contentType: 'text/plain',
27+ );
28+ hint?.attachments.add(textAttachment);
29+ return event;
30+ };
3131```
3232
3333### Fixes
You can’t perform that action at this time.
0 commit comments