HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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
  • 13 types
  • 2 values
  • 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

6 declarations

Used for indexing Instrument. All possible combinations are covered

7 declarations