Parses and holds a Sentry DSN string for configuring the SDK client
// Source: https://github.com/getsentry/sentry-php | License: MIT | Copyright 2012 Functional Software, Inc. dba Sentry
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace Sentry;
/**
* This class represents a Sentry DSN that can be obtained from the Settings
* page of a project.
*
* @author Stefano Arlandini <sarlandini@alice.it>
*/
final class Dsn implements \Stringable
{
/**
* @var string Regex to match the organization ID in the host.
* This only applies to Sentry SaaS DSNs that contain the organization ID.
*/
private const SENTRY_ORG_ID_REGEX = '/^o(\d+)\./';
/**
* @var string The protocol to be used to access the resource
*/
private $scheme;
/**
* @var string
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key