Documentation
¶
Overview ¶
Package span exposes telemetry spans to PHP as the start_span() binding, so a script can measure a region of its own work next to the spans the interpreter records for it.
The span is the telemetry span, not a copy of it: methods on the returned value are the Go methods spelled the way PHP spells them.
$span = start_span("getUser", "database");
$span->set_attribute("user_id", 42);
$span->end();
Without a trace in the context, which is what a CLI run without telemetry looks like, start_span returns a span whose methods do nothing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.