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

Hasura.Tracing.Context

Synopsis

Documentation

type TraceMetadata = [(Text, Text)] Source #

Any additional human-readable key-value pairs relevant to the execution of a span.

When the Open Telemetry exporter is in use these become attributes. Where possible and appropriate, consider using key names from the documented OT semantic conventions here: https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/ This can serve to document the metadata, even for users not using open telemetry.

We may make this type more closely align with the OT data model in the future (e.g. supporting int, etc)

data TraceContext Source #

A trace context records the current active trace, the active span within that trace, and the span's parent, unless the current span is the root. This is like a call stack.