PhpTek\Sentry\Adaptor\SentryAdaptor
The SentryAdaptor provides a functionality bridge between the getsentry/sentry PHP SDK and {@link SentryLogger} itself.
Synopsis
class SentryAdaptor
{
- // members
- protected array $context = ;
- // methods
- public void __construct()
- public mixed setContext()
- public Scope getContext()
- public static array get_opts()
Members
protected
- $context
—
array
Internal storage for context. Used only when non-exception data is sent to Sentry instance.
Methods
public
- __construct()
- getContext() — Get _locally_ set contextual data, that we should be able to get from Sentry's current {@link Scope}.
- get_opts() — Get various userland options to pass to Sentry. Includes detecting and setting proxy options too.
- setContext() — Configures Sentry "context" to display additional information about a SilverStripe application's runtime and context.