Sentry-dart: [bug] (with 1-line-of-code fix) the `hint` is not passed to processors

Created on 13 Mar 2021  路  3Comments  路  Source: getsentry/sentry-dart

Hi thanks for the lib! The hint provided from captureEvent is not passed to processors. This can be solved by one line of code:

In https://github.com/getsentry/sentry-dart/blob/82ef2abed5cf256b47aeb45f56dc2f51fa7843db/dart/lib/src/sentry_client.dart#L72

Replace

    preparedEvent = await _processEvent(
      preparedEvent,
      eventProcessors: _options.eventProcessors,
    );

with

    preparedEvent = await _processEvent(
      preparedEvent,
      eventProcessors: _options.eventProcessors,
     hint:hint, //THIS!
    );
bug

All 3 comments

@fzyzcjy thanks, good catch btw :)

@marandaneto You are welcome! This one also released on Monday right? :)

@marandaneto You are welcome! This one also released on Monday right? :)

yes

Was this page helpful?
0 / 5 - 0 ratings