Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class NoopRequestTracer

A NOOP implementation of IRequestTracer used when tracing is disabled.

Inheritance
object
NoopRequestTracer
Implements
IRequestTracer
IDisposable
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Core.Diagnostics.Tracing
Assembly: Couchbase.NetClient.dll
Syntax
public class NoopRequestTracer : IRequestTracer, IDisposable

Constructors

View Source

NoopRequestTracer()

Declaration
public NoopRequestTracer()

Fields

View Source

Instance

Declaration
public static IRequestTracer Instance
Field Value
Type Description
IRequestTracer

Methods

View Source

Dispose()

Declaration
public void Dispose()
View Source

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")

IRequestSpan parentSpan

A parent span, otherwise null.

Returns
Type Description
IRequestSpan

A request span that wraps the actual tracer implementation span.

View Source

Start(TraceListener)

Starts tracing given a TraceListener implementation.

Declaration
public IRequestTracer Start(TraceListener listener)
Parameters
Type Name Description
TraceListener listener
Returns
Type Description
IRequestTracer

Implements

IRequestTracer
IDisposable

Extension Methods

RequestSpanExtensions.RequestSpan(IRequestTracer, string, string)
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.