startChild static method

Span? startChild(
  1. String name
)

Starts a child of the current span, or null when nothing is tracing.

The caller ends it and exports it; this only builds it, so a database layer can time a query without knowing where spans go.

Implementation

static Span? startChild(String name) => value?.child(name);