Copyright | (c) digitally induced GmbH 2020 |
---|---|
Safe Haskell | Safe-Inferred |
Synopsis
- data TelemetryInfo = TelemetryInfo {}
- reportTelemetry :: (?context :: context, LoggingProvider context) => IO ()
- getTelemetryInfo :: IO TelemetryInfo
- isWindows :: IO Bool
- getProjectId :: IO Text
- toPayload :: TelemetryInfo -> [(ByteString, ByteString)]
Documentation
data TelemetryInfo Source #
Instances
Show TelemetryInfo Source # | |
Defined in IHP.Telemetry showsPrec :: Int -> TelemetryInfo -> ShowS # show :: TelemetryInfo -> String showList :: [TelemetryInfo] -> ShowS # | |
Eq TelemetryInfo Source # | |
Defined in IHP.Telemetry (==) :: TelemetryInfo -> TelemetryInfo -> Bool # (/=) :: TelemetryInfo -> TelemetryInfo -> Bool # |
reportTelemetry :: (?context :: context, LoggingProvider context) => IO () Source #
Reports telemetry info to the IHP Telemetry server
This can be disabled by setting the env var IHP_TELEMETRY_DISABLED=1
getProjectId :: IO Text Source #
The project id is a an anonymous identifier to keep track of distinct projects.
The project id is a hash of the current working directory. We use sha512 to make sure no one is able to get back the original path from the hash.
toPayload :: TelemetryInfo -> [(ByteString, ByteString)] Source #
Transforms a telemetry info into a payload to be used with the telemetry request