Class NoopRequestTracer
A NOOP implementation of IRequest
Inherited Members
Namespace: Couchbase.Core.Diagnostics.Tracing
Assembly: Couchbase.NetClient.dll
Syntax
public class NoopRequestTracer : IRequestTracer, IDisposable
Fields
| Edit this page View SourceInstance
Declaration
public static IRequestTracer Instance
Field Value
Type | Description |
---|---|
IRequest |
Methods
| Edit this page View SourceDispose()
Declaration
public void Dispose()
RequestSpan(string, IRequestSpan?)
Creates a new request span with or without a parent span.
Declaration
public IRequestSpan RequestSpan(string name, IRequestSpan? parentSpan = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the top-level operation (i.e. "cb.get") |
IRequest |
parentSpan | A parent span, otherwise null. |
Returns
Type | Description |
---|---|
IRequest |
A request span that wraps the actual tracer implementation span. |
Start(TraceListener)
Starts tracing given a Trace
Declaration
public IRequestTracer Start(TraceListener listener)
Parameters
Type | Name | Description |
---|---|---|
Trace |
listener |
Returns
Type | Description |
---|---|
IRequest |