-
public final class TelemetryContextTelemetry metadata for dropped-event diagnostics. Instances are converted to an
additionalPropertiesmap via asAttributesMap and attached to internal telemetry error events so that dropped-event diagnostics stay consistent and queryable across features and across the read/write persistence paths.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTelemetryContext.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringfeatureNameprivate final StringeventType
-
Constructor Summary
Constructors Constructor Description TelemetryContext(String featureName, String eventType)
-
Method Summary
Modifier and Type Method Description final StringgetFeatureName()Name of the feature ("rum", "logs", "tracing", ...) whose event was affected. final StringgetEventType()Category of the dropped event, in a feature-specific format (e.g. final Map<String, Object>asAttributesMap(Integer bytesLost, Pair<String, Object> customFields)Converts this metadata instance into a map of telemetry attributes suitable for ingestion by the telemetry batch. -
-
Method Detail
-
getFeatureName
final String getFeatureName()
Name of the feature ("rum", "logs", "tracing", ...) whose event was affected.
-
getEventType
final String getEventType()
Category of the dropped event, in a feature-specific format (e.g. RUM uses its model event type such as "view", "action", "error") — when known.
-
-
-
-