AITrace.ExportProfile (AITrace v0.2.0)

Copy Markdown View Source

Explicit export configuration captured by a trace context.

Standalone callers may rely on the boot default profile derived from application config. Governed callers should construct and pass a profile at the call site so export sinks are data on the trace context, not ambient VM state consulted at finish time.

Summary

Functions

Captures the application-configured exporters as a boot default profile.

Builds the governed-effect export profile.

Builds an explicit export profile.

Types

exporter_config()

@type exporter_config() :: module() | {module(), keyword() | map()}

t()

@type t() :: %AITrace.ExportProfile{
  exporters: [exporter_config()],
  metadata: map(),
  source: :explicit | :boot_default
}

Functions

boot_default()

@spec boot_default() :: t()

Captures the application-configured exporters as a boot default profile.

governed_effect(attrs \\ [])

@spec governed_effect(keyword() | map()) :: t()

Builds the governed-effect export profile.

new(attrs \\ [])

@spec new(keyword() | map()) :: t()

Builds an explicit export profile.