Integration
class Integration implements IntegrationInterface
Constants
| private CONTEXT_TRANSACTION_KEY |
|
Methods
No description
Register the exception handler with the Hypervel exception configuration.
Add a breadcrumb if the integration is enabled.
Configure the scope if the integration is enabled.
Get the current transaction name from coroutine-local storage.
Set the current transaction name in coroutine-local storage.
Block until all events are processed by the PHP SDK client.
Extract the readable name and transaction source for a route.
Retrieve the meta tags with tracing information to link this request to front-end requests.
Retrieve the sentry-trace meta tag with tracing information to link this request to front-end requests.
Retrieve the baggage meta tag with information to link this request to front-end requests.
Capture an unhandled exception and report it to Sentry.
Return a callback for Model::handleMissingAttributeViolationUsing to report missing attribute violations to Sentry.
Return a callback for Model::handleLazyLoadingViolationUsing to report lazy loading violations to Sentry.
Return a callback for Model::handleDiscardedAttributeViolationUsing to report discarded attribute violations to Sentry.
Details
at line 35
void
setupOnce()
No description
at line 64
static void
handles(Exceptions $exceptions)
Register the exception handler with the Hypervel exception configuration.
Boot-only. Registers a reportable callback on the singleton exception handler that persists for the worker lifetime.
at line 74
static void
addBreadcrumb(Breadcrumb $breadcrumb)
Add a breadcrumb if the integration is enabled.
at line 88
static void
configureScope(callable $callback)
Configure the scope if the integration is enabled.
at line 102
static string|null
getTransaction()
Get the current transaction name from coroutine-local storage.
at line 110
static void
setTransaction(string|null $transaction)
Set the current transaction name in coroutine-local storage.
at line 121
static void
flushEvents()
| internal | this is not part of the public API and is here temporarily until the underlying issue can be resolved, this method will be removed |
Block until all events are processed by the PHP SDK client.
at line 140
static array
extractNameAndSourceForRoute(Route $route)
| internal | this helper is used in various places to extract meaningful info from a Route object |
Extract the readable name and transaction source for a route.
at line 152
static string
sentryMeta()
Retrieve the meta tags with tracing information to link this request to front-end requests.
This propagates the Dynamic Sampling Context.
at line 160
static string
sentryTracingMeta()
Retrieve the sentry-trace meta tag with tracing information to link this request to front-end requests.
at line 169
static string
sentryBaggageMeta()
Retrieve the baggage meta tag with information to link this request to front-end requests.
This propagates the Dynamic Sampling Context.
at line 177
static EventId|null
captureUnhandledException(Throwable $throwable)
Capture an unhandled exception and report it to Sentry.
at line 196
static callable
missingAttributeViolationReporter(callable|null $callback = null, bool $suppressDuplicateReports = true, bool $reportAfterResponse = true)
Return a callback for Model::handleMissingAttributeViolationUsing to report missing attribute violations to Sentry.
at line 204
static callable
lazyLoadingViolationReporter(callable|null $callback = null, bool $suppressDuplicateReports = true, bool $reportAfterResponse = true)
Return a callback for Model::handleLazyLoadingViolationUsing to report lazy loading violations to Sentry.
at line 212
static callable
discardedAttributeViolationReporter(callable|null $callback = null, bool $suppressDuplicateReports = true, bool $reportAfterResponse = true)
Return a callback for Model::handleDiscardedAttributeViolationUsing to report discarded attribute violations to Sentry.