Impact.Otel (Impact v0.0.1)

Copy Markdown

Provider lifecycle: bootstrap / attach according to Impact.Config.mode.

Bootstrap registers the OTLP/HTTP-protobuf exporter and a batch span processor pointed at the Impact endpoint. Attach inspects the live :opentelemetry configuration and refuses to mutate it.

Summary

Functions

force_flush(timeout)

@spec force_flush(timeout :: pos_integer()) :: :ok

instrumentation_results()

@spec instrumentation_results() :: %{optional(atom()) => :ok | {:error, term()}}

setup(cfg)

@spec setup(Impact.Config.t()) :: :ok | {:error, term()}

shutdown(timeout)

@spec shutdown(timeout :: pos_integer()) :: :ok