@@ -54,7 +54,7 @@ class Hub {
5454 SentryId get lastEventId => _lastEventId;
5555
5656 /// Captures the event.
57- Future <SentryId > captureEvent (SentryEvent event) async {
57+ Future <SentryId > captureEvent (SentryEvent event, { dynamic hint} ) async {
5858 var sentryId = SentryId .empty ();
5959
6060 if (! _isEnabled) {
@@ -71,7 +71,11 @@ class Hub {
7171 final item = _peek ();
7272 if (item != null ) {
7373 try {
74- sentryId = await item.client.captureEvent (event, scope: item.scope);
74+ sentryId = await item.client.captureEvent (
75+ event,
76+ scope: item.scope,
77+ hint: hint,
78+ );
7579 } catch (err) {
7680 _options.logger (
7781 SentryLevel .error,
@@ -94,6 +98,7 @@ class Hub {
9498 Future <SentryId > captureException (
9599 dynamic throwable, {
96100 dynamic stackTrace,
101+ dynamic hint,
97102 }) async {
98103 var sentryId = SentryId .empty ();
99104
@@ -111,8 +116,12 @@ class Hub {
111116 final item = _peek ();
112117 if (item != null ) {
113118 try {
114- sentryId = await item.client.captureException (throwable,
115- stackTrace: stackTrace, scope: item.scope);
119+ sentryId = await item.client.captureException (
120+ throwable,
121+ stackTrace: stackTrace,
122+ scope: item.scope,
123+ hint: hint,
124+ );
116125 } catch (err) {
117126 _options.logger (
118127 SentryLevel .error,
@@ -138,6 +147,7 @@ class Hub {
138147 SentryLevel level = SentryLevel .info,
139148 String template,
140149 List <dynamic > params,
150+ dynamic hint,
141151 }) async {
142152 var sentryId = SentryId .empty ();
143153
@@ -161,6 +171,7 @@ class Hub {
161171 template: template,
162172 params: params,
163173 scope: item.scope,
174+ hint: hint,
164175 );
165176 } catch (err) {
166177 _options.logger (
0 commit comments