Safe Haskell | None |
---|---|
Language | Haskell2010 |
Temporal.Runtime
Synopsis
- data Runtime
- data TelemetryOptions
- = OtelTelemetryOptions {
- url :: Text
- headers :: Map Text Text
- metricPeriodicity :: Maybe Periodicity
- globalTags :: Map Text Text
- | PrometheusTelemetryOptions {
- socketAddr :: Text
- globalTags :: Map Text Text
- countersTotalSuffix :: Bool
- unitSuffix :: Bool
- | NoTelemetry
- = OtelTelemetryOptions {
- data Periodicity = Periodicity {
- seconds :: Word64
- nanoseconds :: Word32
- initializeRuntime :: TelemetryOptions -> IO Runtime
- withRuntime :: Runtime -> (Ptr Runtime -> IO a) -> IO a
- fetchLogs :: Runtime -> IO (Vector CoreLog)
- data CoreLog = CoreLog {}
- data LogLevel
Documentation
A handle to the Rust Tokio runtime and thread-pool.
You almost always should use the globalRuntime
value, which is initialized
once for the entire process.
data TelemetryOptions Source #
Constructors
OtelTelemetryOptions | |
Fields
| |
PrometheusTelemetryOptions | |
Fields
| |
NoTelemetry |
Instances
ToJSON TelemetryOptions Source # | |
Defined in Temporal.Core.CTypes Methods toJSON :: TelemetryOptions -> Value # toEncoding :: TelemetryOptions -> Encoding # toJSONList :: [TelemetryOptions] -> Value # toEncodingList :: [TelemetryOptions] -> Encoding # omitField :: TelemetryOptions -> Bool # |
data Periodicity Source #
Constructors
Periodicity | |
Fields
|
Instances
ToJSON Periodicity Source # | |
Defined in Temporal.Core.CTypes Methods toJSON :: Periodicity -> Value # toEncoding :: Periodicity -> Encoding # toJSONList :: [Periodicity] -> Value # toEncodingList :: [Periodicity] -> Encoding # omitField :: Periodicity -> Bool # |
initializeRuntime :: TelemetryOptions -> IO Runtime Source #
Initialize the Rust runtime and thread-pool.
withRuntime :: Runtime -> (Ptr Runtime -> IO a) -> IO a Source #
Access the underlying Runtime
pointer for calling out to Rust.
fetchLogs :: Runtime -> IO (Vector CoreLog) Source #
The Rust runtime exports logs to the Haskell runtime. This function fetches those logs so they can be fed through a logging framework.
Constructors
CoreLog | |