Skip to main content

Crate omnia_wasi_otel

Crate omnia_wasi_otel 

Source
Expand description

§Omnia WASI OpenTelemetry

This crate provides the OpenTelemetry interface for the Omnia runtime.

§Interface

Implements the wasi:otel WIT interface.

§Backend

Uses opentelemetry and tracing crates to export telemetry data.

§Configuration

  • OTEL_GRPC_URL: The gRPC endpoint for the OpenTelemetry collector (default: http://localhost:4317).

§Usage

Add this crate to your Cargo.toml and use it in your runtime configuration:

use omnia::runtime;
use omnia_wasi_otel::DefaultOtel;

omnia::runtime!({
    "otel": DefaultOtel,
});

§License

MIT OR Apache-2.0

§WASI OpenTelemetry

Bindings for the OpenTelemetry specification (wasi:otel) for guest and host components.

Macros§

omnia_wasi_view
Implementation of the WasiOtelView trait for the store context.

Structs§

OtelDefault
Default implementation for wasi:otel.
WasiOtel
Host-side service for wasi:otel.
WasiOtelCtxView
View into WasiOtelCtx implementation and ResourceTable.

Traits§

WasiOtelCtx
A trait which provides internal WASI OpenTelemetry context.
WasiOtelView
A trait which provides internal WASI OpenTelemetry state.