MediaWiki master
|
A no-op tracer that creates no-op spans and persists no data. More...
Inherits Wikimedia\Telemetry\TracerInterface.
Public Member Functions | |||||||
__construct () | |||||||
createRootSpan (string $spanName) | |||||||
Create a new root span, i.e.a span with no parent that forms the basis for a new trace.
| |||||||
createSpan (string $spanName, $parentSpan=null) | |||||||
createSpanWithParent (string $spanName, SpanContext $parentSpanContext) | |||||||
Create a span with the given name and parent.
| |||||||
shutdown () | |||||||
Shut down this tracer and export collected trace data.
| |||||||
Public Member Functions inherited from Wikimedia\Telemetry\TracerInterface | |||||||
createSpan (string $spanName) | |||||||
Create a span with the given name and the currently active span as the implicit parent. | |||||||
A no-op tracer that creates no-op spans and persists no data.
Useful for scenarios where tracing is disabled.
Definition at line 11 of file NoopTracer.php.
Wikimedia\Telemetry\NoopTracer::__construct | ( | ) |
Definition at line 15 of file NoopTracer.php.
Wikimedia\Telemetry\NoopTracer::createRootSpan | ( | string | $spanName | ) |
Create a new root span, i.e.a span with no parent that forms the basis for a new trace.
string | $spanName | The descriptive name of this span. Refer to the OTEL Tracing API spec for recommended naming conventions. |
Implements Wikimedia\Telemetry\TracerInterface.
Definition at line 25 of file NoopTracer.php.
Wikimedia\Telemetry\NoopTracer::createSpan | ( | string | $spanName, |
$parentSpan = null ) |
Definition at line 20 of file NoopTracer.php.
Wikimedia\Telemetry\NoopTracer::createSpanWithParent | ( | string | $spanName, |
SpanContext | $parentSpanContext ) |
Create a span with the given name and parent.
string | $spanName | The descriptive name of this span. Refer to the OTEL Tracing API spec for recommended naming conventions. |
SpanContext | $parentSpanContext | Context of the parent span this span should be associated with. |
Implements Wikimedia\Telemetry\TracerInterface.
Definition at line 30 of file NoopTracer.php.
Wikimedia\Telemetry\NoopTracer::shutdown | ( | ) |
Shut down this tracer and export collected trace data.
Implements Wikimedia\Telemetry\TracerInterface.
Definition at line 35 of file NoopTracer.php.