Object InitTelemetryHelper
-
- All Implemented Interfaces:
public class InitTelemetryHelperLightweight telemetry path for SDK startup events that can happen before the normal telemetry runtime is available.
TelemetryComponentis intentionally not used here. Starting or querying the normal telemetry stack can pull in config/component work before SDK init has completed, and buffering these events untilTelemetryComponentstarts would make pre-init and init-failure reporting dependent on a successful publisher init. That is exactly the gap this helper covers: it can report pre-init completion, SDK init started, and SDK init failures from the beginning of the flow using only the cached pre-init KV snapshot and a no-interceptor network client.
-
-
Field Summary
Fields Modifier and Type Field Description public final static InitTelemetryHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitsubmitPreInitCompleted(Context context, Long latency, Short errorCode)Reports the provider pre-init terminal state through the lightweight init telemetry path. final static UnitsubmitSdkInitStarted(Context context, Long preInitToInitGap)Reports that publisher SDK init was invoked, including pre-init to init latency when known. final static UnitsubmitSdkInitFailed(Context context, Long latency, Short errorCode)Reports SDK init failure before the normal telemetry pipeline is guaranteed to be available. final static UnitsubmitSdkContextChanged(Context context)Reports that the SDK application context was replaced after one was already available. final UnitsubmitInitCompletedTelemetry(InitRequest initRequest, Long elapsed, String message)final Map<String, Object>buildSdkInitializedPayload(Long startTime, Short sdkInitializedTrigger)final ShortmapInitFailureErrorCode(String message)-
-
Method Detail
-
submitPreInitCompleted
final static Unit submitPreInitCompleted(Context context, Long latency, Short errorCode)
Reports the provider pre-init terminal state through the lightweight init telemetry path.
-
submitSdkInitStarted
final static Unit submitSdkInitStarted(Context context, Long preInitToInitGap)
Reports that publisher SDK init was invoked, including pre-init to init latency when known.
-
submitSdkInitFailed
final static Unit submitSdkInitFailed(Context context, Long latency, Short errorCode)
Reports SDK init failure before the normal telemetry pipeline is guaranteed to be available. Future release task: after verifying this path's prod health metrics, combine this event into SdkInitialized and use errorCode presence to denote failure.
-
submitSdkContextChanged
final static Unit submitSdkContextChanged(Context context)
Reports that the SDK application context was replaced after one was already available.
-
submitInitCompletedTelemetry
final Unit submitInitCompletedTelemetry(InitRequest initRequest, Long elapsed, String message)
-
buildSdkInitializedPayload
final Map<String, Object> buildSdkInitializedPayload(Long startTime, Short sdkInitializedTrigger)
-
mapInitFailureErrorCode
final Short mapInitFailureErrorCode(String message)
-
-
-
-