SentryClient class
Logs crash reports and events to the Sentry.io service.
Constructors
- SentryClient(SentryOptions options)
-
Instantiates a client using SentryOptions
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- metricsAggregator → MetricsAggregator?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
captureEnvelope(
SentryEnvelope envelope) → Future< SentryId?> -
Reports the
envelope
to Sentry.io. -
captureEvent(
SentryEvent event, {Scope? scope, dynamic stackTrace, Hint? hint}) → Future< SentryId> -
Reports an
event
to Sentry.io. -
captureException(
dynamic throwable, {dynamic stackTrace, Scope? scope, Hint? hint}) → Future< SentryId> -
Reports the
throwable
and optionally itsstackTrace
to Sentry.io. -
captureFeedback(
SentryFeedback feedback, {Scope? scope, Hint? hint}) → Future< SentryId> -
Reports the
feedback
to Sentry.io. -
captureMessage(
String formatted, {SentryLevel? level, String? template, List? params, Scope? scope, Hint? hint}) → Future< SentryId> -
Reports the
template
-
captureMetrics(
Map< int, Iterable< metricsBuckets) → Future<Metric> >SentryId> -
Reports the
metricsBuckets
to Sentry.io. -
captureTransaction(
SentryTransaction transaction, {Scope? scope, SentryTraceContextHeader? traceContext}) → Future< SentryId> -
captureUserFeedback(
SentryUserFeedback userFeedback) → Future< void> -
Reports the
userFeedback
to Sentry.io. -
close(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited