NoOpSpanBuilder

No-op span builder implementation.

Since

0.4.0

Functions

Link copied to clipboard
open override fun setAttribute(key: String, value: Boolean): NoOpSpanBuilder

Set a boolean attribute on the span.

open override fun setAttribute(key: String, value: Double): NoOpSpanBuilder

Set a double attribute on the span.

open override fun setAttribute(key: String, value: Long): NoOpSpanBuilder

Set a long attribute on the span.

open override fun setAttribute(key: String, value: String): NoOpSpanBuilder

Set a string attribute on the span.

Link copied to clipboard
open override fun setAttributes(attributes: Map<String, Any>): NoOpSpanBuilder

Set multiple attributes at once.

Link copied to clipboard
open override fun setParent(context: SpanContext?): NoOpSpanBuilder

Set the parent span context.

Link copied to clipboard
open override fun setSpanKind(kind: SpanKind): NoOpSpanBuilder

Set the span kind.

Link copied to clipboard
open override fun setStartTimestamp(timestamp: Instant): NoOpSpanBuilder

Set explicit start timestamp (default is now).

Link copied to clipboard
open override fun startSpan(): Span

Start and return the span.