Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpansRepository

A Class that allows access of spans created in the test run. for example: HTTP GET spans. Mongo db spans, etc. Read more about OpenTelemetry Spans here

Hierarchy

  • SpansRepository

Index

Constructors

  • Initializes the internal spans array.

    Parameters

    • spans: ReadableSpan[]

      An array of ReadableSpans

    Returns SpansRepository

Properties

filter: any

Filters the internal spans array according to the predicate. Returns a new SpansRepository object to allow chaining.

param predicate

A predicate to filter the spans.

Accessors

  • get all(): MalabiSpan[]
  • Returns all spans as MalabiSpan.

    Returns MalabiSpan[]

  • get first(): MalabiSpan
  • Returns the first span as MalabiSpan.

    Returns MalabiSpan

  • get length(): number
  • Returns how many spans are currently in the array.

    Returns number

  • get second(): MalabiSpan
  • Returns the second span as MalabiSpan.

    Returns MalabiSpan

Methods

  • at(index: number): MalabiSpan
  • Returns span at the given index as MalabiSpan.

    Parameters

    • index: number

      The index to retrieve.

    Returns MalabiSpan

  • Returns a new instance of SpansRepository with AWS spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with SQS spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with database spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with database spans that match a given operation.

    Parameters

    • op: string

      The operation to filter by. For example: "save".

    Returns SpansRepository

  • Returns a new instance of SpansRepository with the entry span only (meaning without parent span id).

    Returns SpansRepository

  • Returns a new instance of SpansRepository with express spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only HTTP spans.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only HTTP GET spans.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only HTTP spans, filtered by method.

    Parameters

    • method: string

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only HTTP POST spans.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with incoming spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with messaging spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only messaging spans with the following MESSAGING_OPERATION: process.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only messaging spans with the following MESSAGING_OPERATION: receive.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only messaging spans with the following kind: producer.

    Returns SpansRepository

  • Returns a new instance of SpansRepository mongo db spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with Neo4j spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with outgoing spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only HTTP spans that have a specific path

    Parameters

    • p: string | RegExp

      The path to filter by.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with Redis spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with only HTTP spans that have a specific route

    Parameters

    • r: string | RegExp

      The route to filter by.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with rpc spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with sequelize spans only.

    Returns SpansRepository

  • Returns a new instance of SpansRepository with TypeORM spans only.

    Returns SpansRepository

Generated using TypeDoc