Update dependency sentry/sentry to v4 #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~1.6
->~4.0
Release Notes
getsentry/sentry-php (sentry/sentry)
v4.9.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.9.0.
Features
Allow retrieving a single piece of data from the span by it’s key (#1767)
Add span trace origin (#1769)
v4.8.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.8.1.
Bug Fixes
REMOTE_ADDR
(#1751)v4.8.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.8.0.
Features
Add timing span when emiting a timing metric (#1717)
Bug Fixes
Misc
Sentry\init
function (#1738)AWS_LAMBDA_FUNCTION_VERSION
environment variable for release if available (#1742)v4.7.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.7.0.
Features
metric_bucket
rate limits (#1726) & (#1728)Bug Fixes
Misc
SpanStatus::resourceExchausted()
. UseSpanStatus::resourceExhausted()
instead (#1725)v4.6.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.6.1.
Bug Fixes
traceparent
header (#1713)JSON_ERROR_NON_BACKED_ENUM
to allowedJSON::encode()
errors. (#1707)v4.6.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.6.0.
Features
Bug Fixes
ClientBuilder::class
(#1699)_metrics_summary
to transactions (#1702)Misc
final
fromMetrics::class
(#1697)ignore_exceptions
(#1701)FrameContextifierIntegration::class
(#1678)v4.5.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.5.0.
Features
Add
before_send_check_in
andbefore_send_metrics
(#1690)Bug Fixes
Fix
_metrics_summary
formatting (#1682)Fix
DebugFileLogger
andDebugStdOutLogger
to be usable with PHP 7.2 and up (#1691)Allow whitespace in metric tag values (#1692)
v4.4.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.4.0.
Features
Add
metrics()->timing()
(#1670)This allows you to emit a distribution metric based on the duration of the provided callback.
Add
withMonitor()
(#1679)This wraps a callback into monitor check-ins.
Add new
failure_issue_threshold
andrecovery_threshold
configuration toMonitorConfig
(#1685)Add
TransactionContext::make()
andSpanContext::make()
(#1684)Add support for fluent use of
Transaction::setName()
(#1687)Add support for the W3C
traceparent
header (#1680)Bug Fixes
Do not send an empty event if no metrics are in the bucket (#1676)
Fix the
http_ssl_verify_peer
option to set the correct value toCURLOPT_SSL_VERIFYPEER
(#1686)Misc
UserDataBag::getSegment()
andUserDataBag::setSegment()
. You may use a custom tag or context instead (#1681)v4.3.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.3.1.
Bug Fixes
Misc
@internal
annotation fromMetricsUnit
class (#1671)v4.3.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.3.0.
Features
Add support for Sentry Developer Metrics (#1619)
To learn more about Sentry Developer Merics, join the discussion at https://github.com/getsentry/sentry-php/discussions/1666.
Bug Fixes
HubAdapter::class
(#1663)Misc
final
keyword fromHub::class
,Client::class
andScope::class
(#1665)v4.2.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.2.0.
Features
Add a config option to allow overriding the Spotlight url (#1659)
Bug Fixes
Restore setting the
logger
value on the event payload (#1657)Only apply the
sample_rate
on error/message events (#1662)This fixes an issue where Cron Check-Ins were wrongly sampled out if a
sample_rate
lower than1.0
is used.Misc
@internal
annotation fromClientBuilder::class
(#1661)v4.1.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.1.0.
Features
Add support for Spotlight (#1647)
Spotlight is Sentry for Development. Inspired by an old project, Django Debug Toolbar. Spotlight brings a rich debug overlay into development environments, and it does it by leveraging the existing power of Sentry's SDKs.
To learn more about Spotlight, go to https://spotlightjs.com/.
Misc
response
status (#1644)v4.0.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.0.1.
Bug Fixes
v4.0.0
Compare Source
The Sentry SDK team is thrilled to announce the immediate availability of Sentry PHP SDK v4.0.0.
Breaking Change
Please refer to the UPGRADE-4.0.md guide for a complete list of breaking changes.
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
.You need to have
ext-curl
installed to use the SDK.The
IgnoreErrorsIntegration
integration was removed. Use theignore_exceptions
option instead.This option performs an
is_a
check now, so you can also ignore more generic exceptions.Features
Add new fluent APIs (#1601)
Simplify the breadcrumb API (#1603)
New
logger
option (#1625)To make it easier to debug the internals of the SDK, the
logger
option now accepts aPsr\Log\LoggerInterface
instance.We do provide two implementations,
Sentry\Logger\DebugFileLogger
andSentry\Logger\DebugStdOutLogger
.New default cURL HTTP client (#1589)
The SDK now ships with its own HTTP client based on cURL. A few new options were added.
To use a different client, you may use the
http_client
option.To use a different transport, you may use the
transport
option. A custom transport must implement theTransportInterface
.If you use the
transport
option, thehttp_client
option has no effect.Misc
php-http/message-factory
was removed.v3.22.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.22.1.
Bug Fixes
v3.22.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.22.0.
Features
Bug Fixes
Misc
tags
option depreaction (#1588)symfony/options-resolver: ^7.0
(1597)v3.21.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.21.0.
Features
Add
Sentry::captureCheckIn()
(#1573)Sending check-ins from the SDK is now simplified.
You can also pass in a
monitorConfig
object as well as theduration
.Undeprecate the
tags
option (#1561)You can now set tags that are applied to each event when calling
Sentry::init()
.Apply the
prefixes
option to profiling frames (#1568)If you added the
prefixes
option when callingSentry::init()
, this option will now also apply to profile frames.Misc
Deduplicate profile stacks and frames (#1570)
This will decrease the payload size of the
profile
event payload.Add the transaction's sampling decision to the trace envelope header (#1562)
v3.20.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.20.1.
Bug Fixes
isTracingEnabled()
to determine the behaviour ofgetBaggage()
andgetTraceparent()
(#1555)Misc
TransactionContext
fromcontinueTrace()
(#1556)v3.20.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.20.0.
Features
Tracing without Performance (#1516)
You can now set up distributed tracing without the need to use the performance APIs.
This allows you to connect your errors that hail from other Sentry instrumented applications to errors in your PHP application.
To continue a trace, fetch the incoming Sentry tracing headers and call
\Sentry\continueTrace()
as early as possible in the request cycle.To continue a trace outward, you may attach the Sentry tracing headers to any HTTP client request.
You can fetch the required header values by calling
\Sentry\getBaggage()
and\Sentry\getTraceparent()
.Upserting Cron Monitors (#1511)
You can now create and update your Cron Monitors programmatically with code.
Read more about this in our docs.
v3.19.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.19.1.
Bug Fixes
v3.19.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.19.0.
Misc
guzzlehttp/promises
v2 (#1536)v3.18.2
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.18.2.
Bug Fixes
v3.18.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.18.1.
Bug Fixes
v3.18.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.18.0.
Features
TransactionContext::fromEnvironment
(#1519)Misc
/envelope
endpoint if tracing is enabled (#1518)v3.17.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.17.0.
Features
Add
ignore_exceptions
&ignore_transactions
options (#1503)We deprecated the IgnoreErrorsIntegration in favor of this new option.
The option will also take previous exceptions into account.
To ignore a transaction being sent to Sentry, add its name to the config option.
You can find the transaction name on the Performance page.
Misc
Bump
php-http/discovery
to^1.15
(#1504)You may need to allow the added composer plugin, introduced in
php-http/discovery v1.15.0
, to execute when runningcomposer update
.We previously pinned this package to version
<1.15
.Due to conflicts with other packages, we decided to lift this restriction.
v3.16.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.16.0.
This release adds initial support for Cron Monitoring.
Features
Add inital support for Cron Monitoring (#1467)
You can use Cron Monitoring to monitor your cron jobs. No pun intended.
Add the code below to your application or script that is invoked by your cron job.
The first Check-In will let Sentry know that your job started, with the second Check-In reporting the outcome.
If you only want to check if a cron did run, you may create a "Heartbeat" instead.
Add the code below to your application or script that is invoked by your cron job.
Introduce a new
trace
helper function (#1490)We made it a tad easier to add custom tracing spans to your application.
v3.15.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.15.0.
This release adds initial support for Profiling.
Profiling is only available on Sentry SaaS (sentry.io). Support for Sentry self-hosted is planned once Profiling is released into GA.
Features
Add initial support for profiling (#1477)
Under the hood, we're using Wikipedia's sampling profiler Excimer.
We chose this profiler for its low overhead and for being used in production by one of the largest PHP-powered websites in the world.
Excimer works with PHP 7.2 and up, for PHP 8.2 support, make sure to use Excimer version 1.1.0.
There is currently no support for either Windows or macOS.
You can install Excimer via your operating systems package manager.
If no suitable version is available, you may build Excimer from source.
Depending on your environment, you may need to enable the Excimer extension afterward.
or
phpenmod -s apache2 excimer
Profiles are being sampled in relation to your
traces_sample_rate
.Please note that the profiler is started inside transactions only. If you're not using our Laravel or Symfony SDKs, you may need to manually add transactions to your application as described here.
Other things you should consider:
You can read more about Excimer's architecture here.
v3.14.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.14.0.
Features
enable_tracing: true/false
option, an alternative fortraces_sample_rate: 1.0/null
(#1458)Bug Fixes
Misc
Client::__construct
$serializer
argument. It is currently un-used (#1482)v3.13.1
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.13.1.
Bug Fixes
< 1.15
to disable some unwanted side-effect introduced in this new minor version (#1464)v3.13.0
Compare Source
The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v3.13.0.
Features
Object IDs are now automatically serialized as part of a stack trace frame (#1443)
Obj::getID()
orObj->id
is accessible, this value will be displayed inside the stack trace frame on the issue details page.To attach local variables to your stack trace, make sure
zend.exception_ignore_arg: 0
is set in yourphp.ini
.See https://docs.sentry.io/platforms/php/troubleshooting/#missing-variables-in-stack-traces
Add more functionality to the
ExceptionMechanism::class
(#1450)ExceptionMechanism
on https://develop.sentry.dev/sdk/event-payloads/exception/#exception-mechanismExceptionMechanism::data
viaExceptionMechanism::getData()
andExceptionMechanism::setData()
code
, the value will be serialized into the event and displayed on the issues details page.v3.12.1
Compare Source
null
ongetTracesSampleRate
andsetTracesSampleRate
inOptions
class (#1441)v3.12.0
Compare Source
before_send_transaction
option (#1424)traces_sample_rate
tonull
by default (#1428)v3.11.0
Compare Source
v3.10.0
Compare Source
never
option formax_request_body_size
(#1397)max_request_body_size.none
in favour ofmax_request_body_size.never
false
when tracing is disabled (#1407)v3.9.1
Compare Source
v3.9.0
Compare Source
segment
toUserDataBag
TransactionSource
, to set information about the transaction name viaTransactionContext::setSource()
(#1382)TransactionContext::fromSentryTrace()
in favor ofTransactionContext::fromHeaders()
v3.8.1
Compare Source
v3.8.0
Compare Source
Sentry\Monolog\BreadcrumbHandler
, a Monolog handler to allow registration of logs as breadcrumbs (#1199)ExceptionDataBag
(#1347)v3.7.0
Compare Source
Scope::getTransaction()
so that it returns also unsampled transactions (#1334)v3.6.1
Compare Source
sentry-trace
header when using the tracing middleware (#1331)v3.6.0
Compare Source
monolog/monolog:^3.0
(#1321)setTag
andremoveTag
public methods toEvent
for easier manipulation of tags (#1324)v3.5.0
Compare Source
guzzlehttp/psr7
package to avoidCVE-2022-24775
(#1305)>=7.4.2
(#1314)send_attempts
to0
(this disables retries) and deprecate the option. If you require retries you can increase thesend_attempts
option to the desired value. (#1312)http_connect_timeout
andhttp_timeout
client options (#1282)v3.4.0
Compare Source
toArray
public method inPayloadSerializer
to be able to re-use Event serializationwithScope
methods now return the callback's return value (#1263)StacktraceBuilder
class part of the public API and add theClient::getStacktraceBuilder()
method to build custom stacktraces (#1124)string
rather than aninteger
(#1294)v3.3.7
Compare Source
callable
when the autoloader throws exceptions (#1280)v3.3.6
Compare Source
Span
constructor and add benchmarks (#1274)v3.3.5
Compare Source
jean85/pretty-package-versions
package (#1267)v3.3.4
Compare Source
ErrorException
exception (#1251)6.x
components (#1257)8.1
(#1245)v3.3.3
Compare Source
EnvironmentIntegration
integration if thephp_uname
function is disabled (#1243)v3.3.2
Compare Source
guzzlehttp/psr7:^2.0
(#1225)psr/log:^1.0|^2.0|^3.0
(#1229)v3.3.1
Compare Source
captureEvent()
without expliciting a stacktrace or an exception (#1223)v3.3.0
Compare Source
ignore_tags
toIgnoreErrorsIntegration
in order to ignore exceptions by tags values. (#1201)v3.2.2
Compare Source
EventHint
in theHubAdapter::capture*()
methods (#1206)v3.2.1
Compare Source
error_types
option when not set: before it defaulted toerror_reporting()
statically at SDK initialization; now it will be evaluated each time during error handling to allow silencing errors temporarily (#1196)v3.2.0
Compare Source
RequestIntegration
integration instead of removing them entirely (#1161)logger
option (#1167)capture*()
methods down to thebefore_send
callback (#1138)tags
option, see the docs for other ways to set tags (#1174)environment
field is set toproduction
if it has not been overridden explicitly (#1116)v3.1.5
Compare Source
@
operator) (#1183)v3.1.4
Compare Source
v3.1.3
Compare Source
$customSamplingContext
argument toHub::startTransaction()
andHubAdapter::startTransaction()
to fix deprecations thrown in Symfony (#1176)v3.1.2
Compare Source
before_send
callback with transaction events, usetraces_sampler
instead to filter transactions (#1158)logger
option not being applied to the event object (#1165)captureEvent()
(#1148)v3.1.1
Compare Source
@
to use a mask check in order to be php 8 compatible (#1141)guzzlehttp/promises
package to the minimum required version compatible with PHP 8 (#1144)symfony/options-resolver
package to the minimum required version compatible with PHP 8 (#1144)v3.1.0
Compare Source
RequestIntegration
integration (#1139)SpanContext::fromTraceparent()
in favor ofTransactionContext::fromSentryTrace()
(#1134)startTransaction()
function (#1134)ExceptionDataBag
(#1100)Scope::removeTag
method (#1126)v3.0.4
Compare Source
RequestIntegration
integration when the stream is empty (#1119)v3.0.3
Compare Source
UserDataBag
class (#1108)v3.0.2
Compare Source
v3.0.1
Compare Source
v3.0.0
Compare Source
Migration Guide:
https://github.com/getsentry/sentry-php/blob/master/UPGRADE-3.0.md
These breaking changes are mostly regarding the internal interfaces of the SDK.
If you were consuming the SDK from a pure usage perspective (how we describe it in our docs) there shouldn't be any code changes necessary.
Tracing API / Performance Monitoring
In this version, we released API for Tracing.
\Sentry\startTransaction
is your entry point for manual instrumentation.More information can be found in our Performance docs.
Breaking Change: This version uses the envelope endpoint. If you are
using an on-premise installation it requires Sentry version
>= v20.6.0
to work. If you are usingsentry.io nothing will change and no action is needed.
Hub
class a singleton (#1038)error_types
option fromE_ALL
to the value get fromerror_reporting()
(#1037)string
rather than an object instance from the transport, the client and the hub (#1036)Options
class. (#1047)ModulesIntegration
integration (#1047)RequestIntegration
integration (#1047)Breadcrumb
class (#1047)ClientBuilderInterface
interface and its implementations (#1047)Scope::setUser()
method now always merges the given data with the existing one instead of replacing it as a whole (#1047)Context::CONTEXT_USER
,Context::CONTEXT_RUNTIME
,Context::CONTEXT_TAGS
,Context::CONTEXT_EXTRA
,Context::CONTEXT_SERVER_OS
constants (#1047)UserContext
,ExtraContext
andContext
classes and refactor theServerOsContext
andRuntimeContext
classes (#1071)FlushableClientInterface
and theClosableTransportInterface
interfaces (#1079)SpoolTransport
transport and all its related classes ([Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.