SentryClient class

Logs crash reports and events to the Sentry.io service.

Implementers

Constructors

SentryClient({@required String dsn, Event environmentAttributes, bool compressPayload, Client httpClient, dynamic clock, UuidGenerator uuidGenerator})
Creates a new platform appropriate client. [...]
factory
SentryClient.base({Client httpClient, dynamic clock, UuidGenerator uuidGenerator, String dsn, Event environmentAttributes, String platform, String origin})

Properties

dsnUri Uri
The DSN URI.
@visibleForTesting, read-only
environmentAttributes Event
Contains Event attributes that are automatically mixed into all events captured through this client. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
httpClient Client
@protected, final
origin String
Use for browser stacktrace
final
postUri String
@visibleForTesting, read-only
projectId String
The ID issued by Sentry.io to your project. [...]
read-only
publicKey String
The Sentry.io public key for the project.
@visibleForTesting, read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secretKey String
The Sentry.io secret key for the project.
@visibleForTesting, read-only
userContext User
Information about the current user. [...]
read / write

Methods

bodyEncoder(Map<String, dynamic> data, Map<String, String> headers) List<int>
@protected
buildHeaders(String authHeader) Map<String, String>
@mustCallSuper, @protected
capture({Event event, StackFrameFilter stackFrameFilter}) Future<SentryResponse>
Reports an event to Sentry.io.
captureException({dynamic exception, dynamic stackTrace}) Future<SentryResponse>
Reports the exception and optionally its stackTrace to Sentry.io.
close() Future<Null>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

defaultLoggerName → const String
The default logger name used if no other value is supplied.
'SentryClient'
sentryClient → const String
Sentry.io client identifier for this client.
'$sdkName/$sdkVersion'