Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NoOpSpan

Package version

A no-op implementation of Span that can safely be used without side-effects.

Hierarchy

Implements

Index

Methods

addEvent

  • Adds an event to the Span

    Parameters

    • _name: string

      The name of the event

    • Optional _attributes: SpanAttributes

      The associated attributes to add for this event

    Returns this

context

end

  • end(_endTime?: undefined | number): void
  • Marks the end of Span execution.

    Parameters

    • Optional _endTime: undefined | number

      The time to use as the Span's end time. Defaults to the current time.

    Returns void

isRecording

  • isRecording(): boolean

recordException

setAttribute

  • setAttribute(_key: string, _value: unknown): this
  • Sets an attribute on the Span

    Parameters

    • _key: string

      The attribute key

    • _value: unknown

      The attribute value

    Returns this

setAttributes

setStatus

updateName

  • updateName(_name: string): this

Generated using TypeDoc