Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Interface IRequestTracer

The abstraction for tracing in the SDK.

Inherited Members
IDisposable.Dispose()
Namespace: Couchbase.Core.Diagnostics.Tracing
Assembly: Couchbase.NetClient.dll
Syntax
public interface IRequestTracer : IDisposable
Remarks

Multiple implementation exists, internal within the SDK and as packages for 3rd parties (OpenTelemetry, OpenTracing, etc.). It is recommended that one of these packages be used for writing your own implementation.

Methods

View Source

RequestSpan(string, IRequestSpan)

Creates a new request span with or without a parent span.

Declaration
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
IRequestTracer Start(TraceListener listener)
Parameters
Type Name Description
TraceListener listener
Returns
Type Description
IRequestTracer

Extension Methods

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