Class TracerExtensions
Extension methods for working with ActorTracing
Inherited Members
Namespace: Phobos.Tracing
Assembly: Phobos.Tracing.dll
Syntax
public static class TracerExtensions
Fields
NoOpActivitySource
Declaration
public static readonly ActivitySource NoOpActivitySource
Field Value
Type | Description |
---|---|
ActivitySource |
NoOpTracer
Used in instances where no traces are produced.
Declaration
public static readonly Tracer NoOpTracer
Field Value
Type | Description |
---|---|
Tracer |
Methods
IsNullOrEmpty(in SpanContext)
Determines if this OpenTelemetry.Trace.SpanContext is a no-op.
Declaration
public static bool IsNullOrEmpty(this in SpanContext span)
Parameters
Type | Name | Description |
---|---|---|
SpanContext | span | The context to evaluate. |
Returns
Type | Description |
---|---|
bool |
|
IsNullOrEmpty(TelemetrySpan)
Determines if the given span is null or default.
Declaration
public static bool IsNullOrEmpty(this TelemetrySpan span)
Parameters
Type | Name | Description |
---|---|---|
TelemetrySpan | span | The span. |
Returns
Type | Description |
---|---|
bool |
|