graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.DDL.OpenTelemetry

Synopsis

Documentation

runSetOpenTelemetryConfig :: (MonadError QErr m, MetadataM m, CacheRWM m) => OpenTelemetryConfig -> m EncJSON Source #

Set the OpenTelemetry configuration to the provided value.

runSetOpenTelemetryStatus :: (MonadError QErr m, MetadataM m, CacheRWM m) => OtelStatus -> m EncJSON Source #

Set just the "status" field of the OpenTelemetry configuration.

parseOtelExporterConfig :: OtelStatus -> Environment -> OtelExporterConfig -> Either QErr (Maybe OtelExporterInfo) Source #

Smart constructor for OtelExporterInfo.

Returns a Left qErr to signal a validation error. Returns Right Nothing to signal that the exporter should be disabled without raising an error.

Allows the trace endpoint to be unset if the entire OpenTelemetry system is disabled.