@tigorhutasuhut/telemetry-js - v0.7.3
    Preparing search index...

    Function initSDK

    • Initialise the OpenTelemetry SDK for the detected (or explicitly specified) runtime.

      Never throws — returns a noop result on failure.

      Parameters

      Returns SDKResult

      An SDKResult with the active providers and lifecycle helpers.

      import { initSDK } from "@tigorhutasuhut/telemetry-js";

      const sdk = initSDK({
      serviceName: "my-api",
      exporterEndpoint: "https://otel.example.com",
      });