Copyright(c) digitally induced GmbH 2020
Safe HaskellNone

IHP.Telemetry

Description

 
Synopsis

Documentation

data TelemetryInfo Source #

Constructors

TelemetryInfo 

Fields

Instances

Instances details
Eq TelemetryInfo Source # 
Instance details

Defined in IHP.Telemetry

Show TelemetryInfo Source # 
Instance details

Defined in IHP.Telemetry

Methods

showsPrec :: Int -> TelemetryInfo -> ShowS #

show :: TelemetryInfo -> String

showList :: [TelemetryInfo] -> ShowS #

reportTelemetry :: 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