Safe Haskell | None |
---|---|
Language | Haskell2010 |
OpenTelemetry.Common
Synopsis
- type Timestamp = Word64
- newtype SpanName = SpanName Text
- newtype TagName = TagName Text
- newtype TagVal = TagVal Text
- newtype EventName = EventName Text
- newtype EventVal = EventVal Text
- data TagValue
- class ToTagValue a where
- toTagValue :: a -> TagValue
- data Span = Span {
- spanContext :: !SpanContext
- spanOperation :: Text
- spanThreadId :: Word32
- spanDisplayThreadId :: Word32
- spanStartedAt :: !Timestamp
- spanFinishedAt :: !Timestamp
- spanTags :: !(HashMap TagName TagValue)
- spanEvents :: [SpanEvent]
- spanStatus :: !SpanStatus
- spanParentId :: Maybe SpanId
- spanNanosecondsSpentInGC :: !Word64
- data InstrumentType
- data CaptureInstrument = CaptureInstrument {}
- data Metric = Metric {}
- data AggregatedMetric = AggregatedMetric {}
- data MetricDatapoint a = MetricDatapoint {}
- spanTraceId :: Span -> TraceId
- spanId :: Span -> SpanId
- data SpanEvent = SpanEvent {}
- data SpanStatus = OK
- data Event = Event Text Timestamp
- data SpanProcessor = SpanProcessor {}
- data OpenTelemetryConfig = OpenTelemetryConfig {}
- data ExportResult
- data Exporter thing = Exporter {
- export :: [thing] -> IO ExportResult
- shutdown :: IO ()
- readInstrumentTag :: Int8 -> Maybe InstrumentType
- additive :: InstrumentType -> Bool
- noopExporter :: Exporter whatever
- aggregated :: Exporter AggregatedMetric -> IO (Exporter Metric)
- now64 :: IO Timestamp
Documentation
Instances
IsString TagName Source # | |||||
Defined in OpenTelemetry.Common Methods fromString :: String -> TagName # | |||||
Generic TagName Source # | |||||
Defined in OpenTelemetry.Common Associated Types
| |||||
Show TagName Source # | |||||
Eq TagName Source # | |||||
Hashable TagName Source # | |||||
Defined in OpenTelemetry.Common | |||||
type Rep TagName Source # | |||||
Defined in OpenTelemetry.Common |
Instances
Generic TagVal Source # | |||||
Defined in OpenTelemetry.Common Associated Types
| |||||
Show TagVal Source # | |||||
Eq TagVal Source # | |||||
ToTagValue TagVal Source # | |||||
Defined in OpenTelemetry.Common Methods toTagValue :: TagVal -> TagValue Source # | |||||
type Rep TagVal Source # | |||||
Defined in OpenTelemetry.Common |
Constructors
StringTagValue !TagVal | |
BoolTagValue !Bool | |
IntTagValue !Int | |
DoubleTagValue !Double |
Instances
class ToTagValue a where Source #
Methods
toTagValue :: a -> TagValue Source #
Instances
ToTagValue TagVal Source # | |
Defined in OpenTelemetry.Common Methods toTagValue :: TagVal -> TagValue Source # | |
ToTagValue Text Source # | |
Defined in OpenTelemetry.Common Methods toTagValue :: Text -> TagValue Source # | |
ToTagValue String Source # | |
Defined in OpenTelemetry.Common Methods toTagValue :: String -> TagValue Source # | |
ToTagValue Bool Source # | |
Defined in OpenTelemetry.Common Methods toTagValue :: Bool -> TagValue Source # | |
ToTagValue Int Source # | |
Defined in OpenTelemetry.Common Methods toTagValue :: Int -> TagValue Source # |
Constructors
Span | |
Fields
|
data InstrumentType Source #
Reflects the constructors of Instrument
Constructors
CounterType | |
UpDownCounterType | |
ValueRecorderType | |
SumObserverType | |
UpDownSumObserverType | |
ValueObserverType |
Instances
data CaptureInstrument Source #
Constructors
CaptureInstrument | |
Fields |
Instances
Generic CaptureInstrument Source # | |||||
Defined in OpenTelemetry.Common Associated Types
Methods from :: CaptureInstrument -> Rep CaptureInstrument x # to :: Rep CaptureInstrument x -> CaptureInstrument # | |||||
Show CaptureInstrument Source # | |||||
Defined in OpenTelemetry.Common Methods showsPrec :: Int -> CaptureInstrument -> ShowS # show :: CaptureInstrument -> String # showList :: [CaptureInstrument] -> ShowS # | |||||
Eq CaptureInstrument Source # | |||||
Defined in OpenTelemetry.Common Methods (==) :: CaptureInstrument -> CaptureInstrument -> Bool # (/=) :: CaptureInstrument -> CaptureInstrument -> Bool # | |||||
Hashable CaptureInstrument Source # | |||||
Defined in OpenTelemetry.Common | |||||
type Rep CaptureInstrument Source # | |||||
Defined in OpenTelemetry.Common type Rep CaptureInstrument = D1 ('MetaData "CaptureInstrument" "OpenTelemetry.Common" "opentelemetry-extra-0.8.0-AGi73Bxdu9T5WweVmRDCAC" 'False) (C1 ('MetaCons "CaptureInstrument" 'PrefixI 'True) (S1 ('MetaSel ('Just "instrumentType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InstrumentType) :*: S1 ('MetaSel ('Just "instrumentName") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString))) |
Constructors
Metric | |
Fields
|
data AggregatedMetric Source #
Constructors
AggregatedMetric | |
Fields
|
Instances
Show AggregatedMetric Source # | |
Defined in OpenTelemetry.Common Methods showsPrec :: Int -> AggregatedMetric -> ShowS # show :: AggregatedMetric -> String # showList :: [AggregatedMetric] -> ShowS # | |
Eq AggregatedMetric Source # | |
Defined in OpenTelemetry.Common Methods (==) :: AggregatedMetric -> AggregatedMetric -> Bool # (/=) :: AggregatedMetric -> AggregatedMetric -> Bool # |
data MetricDatapoint a Source #
Constructors
MetricDatapoint | |
Instances
Functor MetricDatapoint Source # | |
Defined in OpenTelemetry.Common Methods fmap :: (a -> b) -> MetricDatapoint a -> MetricDatapoint b # (<$) :: a -> MetricDatapoint b -> MetricDatapoint a # | |
Show a => Show (MetricDatapoint a) Source # | |
Defined in OpenTelemetry.Common Methods showsPrec :: Int -> MetricDatapoint a -> ShowS # show :: MetricDatapoint a -> String # showList :: [MetricDatapoint a] -> ShowS # | |
Eq a => Eq (MetricDatapoint a) Source # | |
Defined in OpenTelemetry.Common Methods (==) :: MetricDatapoint a -> MetricDatapoint a -> Bool # (/=) :: MetricDatapoint a -> MetricDatapoint a -> Bool # |
spanTraceId :: Span -> TraceId Source #
data SpanStatus Source #
Constructors
OK |
Instances
Show SpanStatus Source # | |
Defined in OpenTelemetry.Common Methods showsPrec :: Int -> SpanStatus -> ShowS # show :: SpanStatus -> String # showList :: [SpanStatus] -> ShowS # | |
Eq SpanStatus Source # | |
Defined in OpenTelemetry.Common |
data SpanProcessor Source #
data OpenTelemetryConfig Source #
Constructors
OpenTelemetryConfig | |
Fields |
data ExportResult Source #
Instances
Show ExportResult Source # | |
Defined in OpenTelemetry.Common Methods showsPrec :: Int -> ExportResult -> ShowS # show :: ExportResult -> String # showList :: [ExportResult] -> ShowS # | |
Eq ExportResult Source # | |
Defined in OpenTelemetry.Common |
additive :: InstrumentType -> Bool Source #
noopExporter :: Exporter whatever Source #
aggregated :: Exporter AggregatedMetric -> IO (Exporter Metric) Source #