HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleopentelemetry-0.8.0Haskell2010

OpenTelemetry.Metrics_Internal

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
Contents
  1. Synonyms for specific types of Instrument
  2. Used for indexing Instrument. All possible combinations are covered
Synopsis
  • Packageopentelemetry-0.8.0
  • Exports15
  • LanguageHaskell2010
  • LicenceApache-2.0
  • SourceMetrics_Internal.hs
datadata Instrument (s :: Synchronicity) (a :: Additivity) (m :: Monotonicity) where
Instances3Eq, Show, Hashable
  • Eq (Instrument s a m)Defined in opentelemetry-0.8.0 · OpenTelemetry.Metrics_Internal
  • Show (Instrument s a m)Defined in opentelemetry-0.8.0 · OpenTelemetry.Metrics_Internal
  • Hashable (Instrument s a m)Defined in opentelemetry-0.8.0 · OpenTelemetry.Metrics_Internal

Synonyms for specific types of Instrument

Used for indexing Instrument. All possible combinations are covered