setTracer function

void setTracer(
  1. Tracer? tracer
)

Register the global span observer (null disables tracing). Dormant until set: sampling/export are the app's problem.

Implementation

void setTracer(Tracer? tracer) {
  _tracer = tracer;
}