View Source GitHub.Plugin.OpenTelemetry (GitHub REST API Client v0.3.1)

OpenTelemetry bindings for all operation requests

This module provides an easy way to report GitHub operations to OpenTelemetry. The library has built-in support for Erlang telemetry in the default client. This module attaches to the available telemetry events and manages OpenTelemetry tracing.

usage

Usage

This module requires the following optional dependencies to be included in mix.exs:

{:opentelemetry_api, "~> 1.0"},
{:opentelemetry_semantic_conventions, "~> 0.2"}

Unlike other plugins, this does not get included in the client stack. Instead, include it in your main Application module start:

def start(_type, _args) do
  GitHub.Plugin.OpenTelemetry.setup()

  # ...
end

Link to this section Summary

Functions

Initialize Erlang telemetry handlers to produce OpenTelemetry traces

Link to this section Functions

@spec setup(keyword()) :: :ok

Initialize Erlang telemetry handlers to produce OpenTelemetry traces