Class OpenTelemetryRequestTracer
Inherited Members
Namespace: Couchbase.Extensions.Tracing.Otel.Tracing
Assembly: Couchbase.Extensions.OpenTelemetry.dll
Syntax
public class OpenTelemetryRequestTracer : IRequestTracer, IDisposable
Constructors
| Edit this page View SourceOpenTelemetryRequestTracer()
Declaration
public OpenTelemetryRequestTracer()
OpenTelemetryRequestTracer(TracerProviderBuilder)
Declaration
[Obsolete("Use the parameterless constructor and AddCouchbaseInstrumentation() to your TracerProviderBuilder")]
public OpenTelemetryRequestTracer(TracerProviderBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
TracerProviderBuilder | builder |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
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") |
IRequestSpan | parentSpan | A parent span, otherwise null. |
Returns
Type | Description |
---|---|
IRequestSpan | A request span that wraps the actual tracer implementation span. |
Start(TraceListener)
Starts tracing given a TraceListener implementation.
Declaration
public IRequestTracer Start(TraceListener listener)
Parameters
Type | Name | Description |
---|---|---|
TraceListener | listener |
Returns
Type | Description |
---|---|
IRequestTracer |