Class TracerExtensions
Extension methods for working with ActorTracing
Inheritance
System.Object
TracerExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phobos.Tracing
Assembly: Phobos.Tracing.dll
Syntax
public static class TracerExtensions
Fields
NoOpActivitySource
Declaration
public static readonly ActivitySource NoOpActivitySource
Field Value
Type | Description |
---|---|
System.Diagnostics.ActivitySource |
NoOpTracer
Used in instances where no traces are produced.
Declaration
public static readonly Tracer NoOpTracer
Field Value
Type | Description |
---|---|
OpenTelemetry.Trace.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 |
---|---|---|
OpenTelemetry.Trace.SpanContext | span | The context to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsNullOrEmpty(TelemetrySpan)
Determines if the given span is null or default.
Declaration
public static bool IsNullOrEmpty(this TelemetrySpan span)
Parameters
Type | Name | Description |
---|---|---|
OpenTelemetry.Trace.TelemetrySpan | span | The span. |
Returns
Type | Description |
---|---|
System.Boolean |
|