Initialise the OpenTelemetry SDK for the detected (or explicitly specified) runtime.
Never throws — returns a noop result on failure.
SDK configuration options.
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",}); Copy
import { initSDK } from "@tigorhutasuhut/telemetry-js";const sdk = initSDK({ serviceName: "my-api", exporterEndpoint: "https://otel.example.com",});
Initialise the OpenTelemetry SDK for the detected (or explicitly specified) runtime.
Never throws — returns a noop result on failure.