v4.23.0 (2026-06-30)
New Features
- Added an optional telemetry adapter hook for tracing Chargebee API calls via OpenTelemetry (or any APM). Configure it via the
telemetryAdapterclient option (orEnvironment::setTelemetryAdapter). When unconfigured, the SDK skips all telemetry work — no behavior change for existing integrations. - Each API call emits one CLIENT span (
chargebee.{resource}.{operation}) with OpenTelemetry HTTP semantic-convention attributes pluschargebee.*attributes. Adapters may inject W3C trace context (traceparent) into outbound request headers for distributed tracing. - Exposed the
TelemetryAdapter,RequestTelemetryContext,RequestTelemetryResult,RequestTelemetryErrortypes, theTelemetrySupporthelpers, and theTelemetryAttributeKeysconstants under theChargebee\Telemetrynamespace.