class Integration implements IntegrationInterface

Constants

private CONTEXT_TRANSACTION_KEY

Methods

void
setupOnce()

No description

static void
handles(Exceptions $exceptions)

Register the exception handler with the Hypervel exception configuration.

static void
addBreadcrumb(Breadcrumb $breadcrumb)

Add a breadcrumb if the integration is enabled.

static void
configureScope(callable $callback)

Configure the scope if the integration is enabled.

static string|null
getTransaction()

Get the current transaction name from coroutine-local storage.

static void
setTransaction(string|null $transaction)

Set the current transaction name in coroutine-local storage.

static void
flushEvents()

Block until all events are processed by the PHP SDK client.

static array
extractNameAndSourceForRoute(Route $route)

Extract the readable name and transaction source for a route.

static string
sentryMeta()

Retrieve the meta tags with tracing information to link this request to front-end requests.

static string
sentryTracingMeta()

Retrieve the sentry-trace meta tag with tracing information to link this request to front-end requests.

static string
sentryBaggageMeta()

Retrieve the baggage meta tag with information to link this request to front-end requests.

static EventId|null
captureUnhandledException(Throwable $throwable)

Capture an unhandled exception and report it to Sentry.

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.

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.

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.

Details

at line 35
void setupOnce()

No description

Return Value

void

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.

Parameters

Exceptions $exceptions

Return Value

void

at line 74
static void addBreadcrumb(Breadcrumb $breadcrumb)

Add a breadcrumb if the integration is enabled.

Parameters

Breadcrumb $breadcrumb

Return Value

void

at line 88
static void configureScope(callable $callback)

Configure the scope if the integration is enabled.

Parameters

callable $callback

Return Value

void

at line 102
static string|null getTransaction()

Get the current transaction name from coroutine-local storage.

Return Value

string|null

at line 110
static void setTransaction(string|null $transaction)

Set the current transaction name in coroutine-local storage.

Parameters

string|null $transaction

Return Value

void

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.

Return Value

void

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.

Parameters

Route $route

Return Value

array

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.

Return Value

string

at line 160
static string sentryTracingMeta()

Retrieve the sentry-trace meta tag with tracing information to link this request to front-end requests.

Return Value

string

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.

Return Value

string

at line 177
static EventId|null captureUnhandledException(Throwable $throwable)

Capture an unhandled exception and report it to Sentry.

Parameters

Throwable $throwable

Return Value

EventId|null

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.

Parameters

callable|null $callback
bool $suppressDuplicateReports
bool $reportAfterResponse

Return Value

callable

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.

Parameters

callable|null $callback
bool $suppressDuplicateReports
bool $reportAfterResponse

Return Value

callable

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.

Parameters

callable|null $callback
bool $suppressDuplicateReports
bool $reportAfterResponse

Return Value

callable