From 7646e61fa7ff4a8b90a8a59f82f823afbc9f85a9 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Wed, 20 Dec 2023 18:02:06 +0100 Subject: [PATCH] Remove experimental functions file --- composer.json | 3 +-- src/Metrics/Metrics.php | 6 ------ src/functions.php | 6 ++++++ src/functions_experimental.php | 18 ------------------ 4 files changed, 7 insertions(+), 26 deletions(-) delete mode 100644 src/functions_experimental.php diff --git a/composer.json b/composer.json index fdd844396..798b05541 100644 --- a/composer.json +++ b/composer.json @@ -50,8 +50,7 @@ }, "autoload": { "files": [ - "src/functions.php", - "src/functions_experimental.php" + "src/functions.php" ], "psr-4": { "Sentry\\": "src/" diff --git a/src/Metrics/Metrics.php b/src/Metrics/Metrics.php index 1a5b891a2..f04151b5f 100644 --- a/src/Metrics/Metrics.php +++ b/src/Metrics/Metrics.php @@ -10,12 +10,6 @@ use Sentry\Metrics\Types\GaugeType; use Sentry\Metrics\Types\SetType; -/** - * This is an experimental feature and should neither be used nor considered stable. - * The API might change at any time without prior warning. - * - * @internal - */ final class Metrics { /** diff --git a/src/functions.php b/src/functions.php index 9dba70ab1..465ad95eb 100644 --- a/src/functions.php +++ b/src/functions.php @@ -4,6 +4,7 @@ namespace Sentry; +use Sentry\Metrics\Metrics; use Sentry\State\Scope; use Sentry\Tracing\PropagationContext; use Sentry\Tracing\SpanContext; @@ -268,3 +269,8 @@ function continueTrace(string $sentryTrace, string $baggage): TransactionContext return TransactionContext::fromHeaders($sentryTrace, $baggage); } + +function metrics(): Metrics +{ + return Metrics::getInstance(); +} diff --git a/src/functions_experimental.php b/src/functions_experimental.php deleted file mode 100644 index 5595581a8..000000000 --- a/src/functions_experimental.php +++ /dev/null @@ -1,18 +0,0 @@ -