SimpleSpanProcessor

org.typelevel.otel4s.sdk.trace.processor.SimpleSpanProcessor
See theSimpleSpanProcessor companion object
final class SimpleSpanProcessor[F[_]] extends SpanProcessor[F]

An implementation of the SpanProcessor that passes ended SpanData directly to the configured exporter.

Type parameters

F

the higher-kinded type of a polymorphic effect

Attributes

See also
Note

this processor exports spans individually upon completion, resulting in a single span per export request.

Companion
object
Source
SimpleSpanProcessor.scala
Graph
Supertypes
trait SpanProcessor[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def forceFlush: F[Unit]

Processes all pending spans (if any).

Processes all pending spans (if any).

Attributes

Source
SimpleSpanProcessor.scala
def onEnd(span: SpanData): F[Unit]

Called when a span is ended, if the span.isRecording returns true.

Called when a span is ended, if the span.isRecording returns true.

This method is called synchronously on the execution thread, should not throw or block the execution thread.

Value parameters

span

the ended span

Attributes

Source
SimpleSpanProcessor.scala
def onStart(parentContext: Option[SpanContext], span: SpanRef[F]): F[Unit]

Called when a span is started, if the span.isRecording returns true.

Called when a span is started, if the span.isRecording returns true.

This method is called synchronously on the execution thread, should not throw or block the execution thread.

Value parameters

parentContext

the optional parent SpanContext

span

the started span

Attributes

Source
SimpleSpanProcessor.scala

Inherited methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
SpanProcessor -> Any
Inherited from:
SpanProcessor
Source
SpanProcessor.scala

Concrete fields

Whether the SpanProcessor requires end events.

Whether the SpanProcessor requires end events.

If true, the onEnd will be called upon the end of a span.

Attributes

Source
SimpleSpanProcessor.scala

Whether the SpanProcessor requires start events.

Whether the SpanProcessor requires start events.

If true, the onStart will be called upon the start of a span.

Attributes

Source
SimpleSpanProcessor.scala
val name: String

The name of the processor.

The name of the processor.

It will be used in an exception to distinguish individual failures in the multi-error scenario.

Attributes

See also
Source
SimpleSpanProcessor.scala