Breaking Changes
- Bootstrap API is now class-based —
new Latitude(options)replacesinitLatitude(options)as the public TypeScript SDK entry point.LatitudeOptionsreplacesInitLatitudeOptions.
Changed
- Automatic existing OTel provider coexistence —
new Latitude()detects common existing tracing providers (Sentry, Datadog, New Relic, Honeycomb, and custom OpenTelemetry SDKs) and attaches the Latitude span processor when possible instead of replacing their tracer provider, context manager, propagator, sampler, or processors. serviceNameownership is provider-aware — when Latitude creates its own provider,serviceNameis applied to the provider resource asservice.name; when Latitude attaches to an existing provider, the host SDK remains the source of truth forservice.name.
Fixed
- Provider detection no longer relies on private constructor names — the SDK now uses OpenTelemetry's proxy provider delegate API and known span-processor containers to detect and attach to existing providers more reliably, including OTel JS v2 and Datadog bridge setups.