rama::telemetry::opentelemetry

Macro otel_debug

macro_rules! otel_debug {
    (name: $name:expr $(,)?) => { ... };
    (name: $name:expr, $($key:ident = $value:expr),+ $(,)?) => { ... };
}
Expand description

Macro for logging debug messages in OpenTelemetry.

§Fields:

  • name: The operation or action being logged.
  • Additional optional key-value pairs can be passed as attributes.

§Example:

use opentelemetry::otel_debug;
otel_debug!(name: "debug_operation", debug_level = "high", version = "1.0.0");