-
This version exclusively uses the envelope endpoint to send event data to Sentry.
If you are using sentry.io, no action is needed. If you are using an on-premise/self-hosted installation of Sentry, the minimum requirement is now version
>= v20.6.0
. -
Added
ext-curl
as a composer requirement. -
The
IgnoreErrorsIntegration
integration was removed. Use theignore_errors
option instead.Sentry\init([ 'ignore_exceptions' => [BadThingsHappenedException::class], ]);
This option performs an
is_a
check, so you can also ignore more generic exceptions. -
Removed support for
symfony/options-resolver: ^3.4.43
. -
The
RequestFetcher
now relies onguzzlehttp/psr7: ^1.8.4|^2.1.1
. -
Added new methods to
ClientInterface
public function getCspReportUrl(): ?string; public function getStacktraceBuilder(): StacktraceBuilder;
-
Added new methods to
HubInterface
public function captureCheckIn(string $slug, CheckInStatus $status, $duration = null, ?MonitorConfig $monitorConfig = null, ?string $checkInId = null): ?string;
-
The new default value for the
trace_propagation_targets
option is nownull
. To not attach any headers to outgoing requests, using theGuzzleTracingMiddleware
, set this option to[]
. -
The
ignore_errors
option now performs ais_a
check on the provided class strings. -
The
send_attempts
option was removed. You may implement a custom transport if you rely on this behaviour. -
The
enable_compression
option was removed. Usehttp_compression
instead. -
The
logger
option now accepts aPsr\Log\LoggerInterface
instance instead ofstring
. -
Removed
Options::getSendAttempts/setSendAttempts()
. -
Removed
Options::isCompressionEnabled/setEnableCompression()
. UseOptions::isHttpCompressionEnabled/setEnableHttpCompression()
instead. -
Removed
SpanContext::fromTraceparent()
. UseSentry\continueTrace()
instead. -
Removed
TransactionContext::fromSentryTrace()
. UseSentry\continueTrace()
instead. -
Removed
Sentry\Exception\InvalidArgumentException
. Use\InvalidArgumentException
instead. -
Removed
Sentry\Exception/ExceptionInterface
. -
Removed
ClientBuilderInterface()
. -
Removed
ClientBuilder::setSerializer()
. -
Removed
ClientBuilder::setTransportFactory()
. You can set a custom transport via thetransport
option. -
Removed
Client::__construct()
parameterSerializerInterface $serializer
. -
Removed
TransportFactoryInterface
. -
Removed
DefaultTransportFactory
. -
Removed
HttpClientFactoryInterface
. -
Removed
HttpClientFactory
. -
Removed
NullTransport
. -
Removed
Dsn::getSecretKey()
. -
Removed
Dsn::setSecretKey()
. -
Removed
EventType::default()
. -
Added return type to
Dsn::getProjectId(): string
. -
Changed return type to
Options::getLogger(): ?LoggerInterface
. -
Changed parameter type of
Options::setLogger(LoggerInterface $logger)
.