Package 

Class TelemetryContext


  • 
    public final class TelemetryContext
    
                        

    Telemetry metadata for dropped-event diagnostics. Instances are converted to an additionalProperties map 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.

    • Method Summary

      Modifier and Type Method Description
      final String getFeatureName() Name of the feature ("rum", "logs", "tracing", ...) whose event was affected.
      final String getEventType() 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TelemetryContext

        TelemetryContext(String featureName, String eventType)
    • 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.