SentryClient constructor

SentryClient(
  1. SentryOptions options
)

Instantiates a client using SentryOptions

Implementation

factory SentryClient(SentryOptions options) {
  if (options.transport is NoOpTransport) {
    options.transport = HttpTransport(options);
  }

  return SentryClient._(options);
}