HubAdapter class

Hub adapter to make Integrations testable

Implemented types

Constructors

HubAdapter()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Check if the Hub is enabled/active.
no setteroverride
lastEventId SentryId
Last event id recorded by the Hub
no setteroverride
metricsAggregator → MetricsAggregator?
no setteroverride
metricsApi → MetricsApi
no setteroverride
options SentryOptions
no setteroverride
profilerFactory ↔ SentryProfilerFactory?
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope Scope
no setteroverride

Methods

addBreadcrumb(Breadcrumb crumb, {Hint? hint}) Future<void>
Adds a breacrumb to the current Scope
override
bindClient(SentryClient client) → void
Binds a different client to the hub
override
captureEvent(SentryEvent event, {dynamic stackTrace, Hint? hint, ScopeCallback? withScope}) Future<SentryId>
Captures the event.
override
captureException(dynamic throwable, {dynamic stackTrace, Hint? hint, ScopeCallback? withScope}) Future<SentryId>
Captures the exception
override
captureMessage(String? message, {SentryLevel? level, String? template, List? params, Hint? hint, ScopeCallback? withScope}) Future<SentryId>
Captures the message.
override
captureMetrics(Map<int, Iterable<Metric>> metricsBuckets) Future<SentryId>
override
captureTransaction(SentryTransaction transaction, {SentryTraceContextHeader? traceContext}) Future<SentryId>
override
captureUserFeedback(SentryUserFeedback userFeedback) Future<void>
override
clone() Hub
Clones the Hub
override
close() Future<void>
Flushes out the queue for up to timeout seconds and disable the Hub.
override
configureScope(ScopeCallback callback) FutureOr<void>
Configures the scope through the callback.
override
getSpan() ISentrySpan?
Gets the current active transaction or span.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSpanContext(dynamic throwable, ISentrySpan span, String transaction) → void
override
startTransaction(String name, String operation, {String? description, DateTime? startTimestamp, bool? bindToScope, bool? waitForChildren, Duration? autoFinishAfter, bool? trimEnd, OnTransactionFinish? onFinish, Map<String, dynamic>? customSamplingContext}) ISentrySpan
Creates a Transaction and returns the instance.
override
startTransactionWithContext(SentryTransactionContext transactionContext, {Map<String, dynamic>? customSamplingContext, DateTime? startTimestamp, bool? bindToScope, bool? waitForChildren, Duration? autoFinishAfter, bool? trimEnd, OnTransactionFinish? onFinish}) ISentrySpan
Creates a Transaction and returns the instance.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited