diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 17:12:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 21:13:39 +0300 |
commit | cdd7ad020e165fe680703b6d3319b908b682fb7a (patch) | |
tree | b51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /vendor/opentracing/opentracing/src/OpenTracing/ScopeManager.php | |
parent | 45a9ff0c88cbd33892ff16ab837e9059937d656e (diff) |
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/opentracing/opentracing/src/OpenTracing/ScopeManager.php')
-rw-r--r-- | vendor/opentracing/opentracing/src/OpenTracing/ScopeManager.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/opentracing/opentracing/src/OpenTracing/ScopeManager.php b/vendor/opentracing/opentracing/src/OpenTracing/ScopeManager.php deleted file mode 100644 index db5fcaa47..000000000 --- a/vendor/opentracing/opentracing/src/OpenTracing/ScopeManager.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace OpenTracing; - -/** - * Keeps track of the current active `Span`. - */ -interface ScopeManager -{ - public const DEFAULT_FINISH_SPAN_ON_CLOSE = true; - - /** - * Activates an `Span`, so that it is used as a parent when creating new spans. - * The implementation must keep track of the active spans sequence, so - * that previous spans can be resumed after a deactivation. - * - * @param Span $span the {@link Span} that should become the {@link #active()} - * @param bool $finishSpanOnClose whether span should automatically be finished - * when {@link Scope#close()} is called. Its default value is true. - * - * @return Scope instance to control the end of the active period for the {@link Span}. It is a - * programming error to neglect to call {@link Scope#close()} on the returned instance. - */ - public function activate(Span $span, bool $finishSpanOnClose = self::DEFAULT_FINISH_SPAN_ON_CLOSE): Scope; - - /** - * Return the currently active {@link Scope} which can be used to access the - * currently active {@link Scope#getSpan()}. - * - * If there is an {@link Scope non-null scope}, its wrapped {@link Span} becomes an implicit parent - * (as {@link References#CHILD_OF} reference) of any - * newly-created {@link Span} at {@link Tracer.SpanBuilder#startActive(boolean)} or {@link SpanBuilder#start()} - * time rather than at {@link Tracer#buildSpan(String)} time. - * - * @return Scope|null - */ - public function getActive(): ?Scope; -} |