Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Oct 17, 2024
1 parent f97d372 commit 26c9418
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dart/lib/src/sentry_tracer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class SentryTracer extends ISentrySpan {

_sentryTraceContextHeader = SentryTraceContextHeader(
_rootSpan.context.traceId,
_hub.options.parsedDsn!.publicKey,
_hub.options.parsedDsn.publicKey,
release: _hub.options.release,
environment: _hub.options.environment,
userId: null, // because of PII not sending it for now
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/src/transport/http_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class HttpTransport implements Transport {

HttpTransport._(this._options, this._rateLimiter)
: _requestHandler =
HttpTransportRequestHandler(_options, _options.parsedDsn!.postUri);
HttpTransportRequestHandler(_options, _options.parsedDsn.postUri);

@override
Future<SentryId?> send(SentryEnvelope envelope) async {
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/src/transport/http_transport_request_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class HttpTransportRequestHandler {
late _CredentialBuilder _credentialBuilder;

HttpTransportRequestHandler(this._options, this._requestUri)
: _dsn = _options.parsedDsn!,
: _dsn = _options.parsedDsn,
_headers = _buildHeaders(
_options.platformChecker.isWeb,
_options.sentryClientName,
Expand Down

0 comments on commit 26c9418

Please sign in to comment.