diff options
Diffstat (limited to 'vendor/opentracing/opentracing/src/OpenTracing/NoopSpan.php')
-rw-r--r-- | vendor/opentracing/opentracing/src/OpenTracing/NoopSpan.php | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/vendor/opentracing/opentracing/src/OpenTracing/NoopSpan.php b/vendor/opentracing/opentracing/src/OpenTracing/NoopSpan.php new file mode 100644 index 000000000..c1af8dfc7 --- /dev/null +++ b/vendor/opentracing/opentracing/src/OpenTracing/NoopSpan.php @@ -0,0 +1,67 @@ +<?php + +declare(strict_types=1); + +namespace OpenTracing; + +final class NoopSpan implements Span +{ + /** + * {@inheritdoc} + */ + public function getOperationName(): string + { + return 'noop_span'; + } + + /** + * {@inheritdoc} + */ + public function getContext(): SpanContext + { + return new NoopSpanContext(); + } + + /** + * {@inheritdoc} + */ + public function finish($finishTime = null): void + { + } + + /** + * {@inheritdoc} + */ + public function overwriteOperationName(string $newOperationName): void + { + } + + /** + * {@inheritdoc} + */ + public function setTag(string $key, $value): void + { + } + + /** + * {@inheritdoc} + */ + public function log(array $fields = [], $timestamp = null): void + { + } + + /** + * {@inheritdoc} + */ + public function addBaggageItem(string $key, string $value): void + { + } + + /** + * {@inheritdoc} + */ + public function getBaggageItem(string $key): ?string + { + return null; + } +} |