@grow-codes/grafana-tempo - v0.1.1
    Preparing search index...

    Function initTracing

    • Sets up OpenTelemetry tracing that exports to Grafana Tempo over OTLP (SPEC §5): resource, sampler, batch span processor, propagators and (unless setGlobal: false) global registration. Settings come from config, then the environment (see tempoTracingConfig). Call shutdown() before the process exits.

      const tracing = initTracing({ serviceName: "checkout", tenantId: "team-a" });
      await withSpan("work", async () => doWork());
      await tracing.shutdown();

      Parameters

      Returns TracingHandle