opentelemetry-0.6.1

Safe HaskellSafe
LanguageHaskell2010

OpenTelemetry.Metrics_Internal

Contents

Description

This is an internal module. The public interface is re-exported by OpenTelemetry.Eventlog

This module implements the instruments of the metrics portion of the OpenTelemetry API. It is reexported by OpenTelemetry.Eventlog and should be used by importing that.

The way to use the Instrument type is throught the add, record or observe functions (depending on the instrument type) which capture metrics on a given instrument.

Usage:

import OpenTelemetry.Eventlog

aCounter :: Counter
aCounter = Counter "myCounter"

anObserver :: ValueObserver
anObserver = ValueObserver "myObserver"

main :: IO ()
main = do
  add aCounter 3
  record anObserver 40
Synopsis

Documentation

data SomeInstrument Source #

Existential wrapper for Instrument. Use when the exact type of Instrument does not matter.

Constructors

SomeInstrument (Instrument s a m) 

Synonyms for specific types of Instrument

Used for indexing Instrument. All possible combinations are covered