Options
All
  • Public
  • Public/Protected
  • All
Menu

Can be passed to a MeterProvider to select instruments and alter their metric stream.

Hierarchy

  • View

Index

Constructors

  • Create a new View instance.

    Parameters can be categorized as two types: Instrument selection criteria: Used to describe the instrument(s) this view will be applied to. Will be treated as additive (the Instrument has to meet all the provided criteria to be selected).

    Metric stream altering: Alter the metric stream of instruments selected by instrument selection criteria.

    example

    // Create a view that changes the Instrument 'my.instrument' to use to an // ExplicitBucketHistogramAggregation with the boundaries [20, 30, 40] new View({ aggregation: new ExplicitBucketHistogramAggregation([20, 30, 40]), instrumentName: 'my.instrument' })

    Parameters

    Returns View

Properties

aggregation: Aggregation
attributesProcessor: AttributesProcessor
description?: string
instrumentSelector: InstrumentSelector
meterSelector: MeterSelector
name?: string

Generated using TypeDoc