ExLLM.Infrastructure.Telemetry.OpenTelemetry (ex_llm v0.8.1)

View Source

OpenTelemetry integration for ExLLM (Stub).

This is a stub module that is loaded when OpenTelemetry is not available. To use the full OpenTelemetry functionality, add the required dependencies to your mix.exs:

{:opentelemetry_api, "~> 1.2"},
{:opentelemetry, "~> 1.3"},
{:opentelemetry_exporter, "~> 1.6"}

Summary

Functions

attach_telemetry_handlers()

chat(model_or_config, messages, opts \\ [])

embed(model_or_config, input, opts \\ [])

stream_chat(model_or_config, messages, opts \\ [])

with_context(otel_ctx, fun)

with_span(name, attributes \\ %{}, list)

(macro)