NoopTracer
in package
implements
RequestTracer
Implements a no-op tracer which performs no work. Note that to reduce the performance impact of using this tracer, this class is not actually used by the SDK, and simply acts as a placeholder which triggers a native implementation to be used instead.
Interfaces, Classes, Traits and Enums
- RequestTracer
- Represents a tracer capable of creating trace spans.
Table of Contents
- $instance : NoopTracer|null
- close() : void
- getInstance() : NoopTracer
- requestSpan() : RequestSpan
- Creates a new request span.
Properties
$instance
private
static NoopTracer|null
$instance
= null
Methods
close()
public
close() : void
Return values
void —getInstance()
public
static getInstance() : NoopTracer
Return values
NoopTracer —requestSpan()
Creates a new request span.
public
requestSpan(string $name[, RequestSpan|null $parent = null ][, int|null $startTimestampNanoseconds = null ]) : RequestSpan
Parameters
- $name : string
-
The name of the span.
- $parent : RequestSpan|null = null
-
The parent of the span, if one exists.
- $startTimestampNanoseconds : int|null = null
-
The start timestamp of the span in nanoseconds.