OxL Reference

method span.start

Opens a span named name as a child of the current one (ctx.spanId). End it with Span.end().

Example:

oxl✓ checked in CI
use std.obs { span }

fn main() io {
  let s = span.start("request")
  s.end()
  print("done")
}
Output
done
pub(api) static fn start(name: str) -> Span  io

Since. 1.0.0-beta

Parameters

NameType
namestr

Returns

Span

Effects

io

Defined in: std/obs/obs.oxl:444

See also