@grow-codes/datadog-apm - v0.1.1
    Preparing search index...

    Class DatadogErrorSpanProcessor

    Span processor that fills the Datadog error attributes just before a span ends, from its last exception event (exception.type, exception.message, exception.stacktrace) or, for an ERROR status without an event, from the status message. Attributes already set are kept. It covers withSpan, traced, the HTTP adapters and plain OpenTelemetry recordException calls. initTracing installs it.

    Implements

    • SpanProcessor
    Index
    • Forces to export all finished spans

      Returns Promise<void>

    • Called when a ReadableSpan is ended, if the span.isRecording() returns true.

      Returns void

    • Experimental

      Called when a Span is ending, if the span.isRecording() returns true.

      Parameters

      • span: Span

        the Span that is ending.

        This method is experimental and may break in minor versions of this package

      Returns void

    • Called when a Span is started, if the span.isRecording() returns true.

      Returns void

    • Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.

      Returns Promise<void>