MetadataAwareTransport

A Transport that stamps in its own pipeline (Transport.stampsInPipeline) and can add an event's EventMetadata to the envelope it stamps there (ADR 0001 §2c: a capability the core probes with is, because Transport's own member set is frozen).

The core calls track / screen here instead of Transport.track / Transport.screen only for an event that carries metadata; every other event still goes through Transport. A transport the core stamps for never needs this: the core puts the metadata on the Envelope it passes in.

A pipeline transport that does not implement it still receives the event, through Transport, without the metadata, and the tracker logs that once through AutographConfig.logger.

Its member set is frozen once it ships (ADR 0001 §2c): a later event type that carries metadata gets a second capability interface.

Inheritors

Functions

Link copied to clipboard
abstract fun screen(name: String, properties: Map<String, JsonElement>, envelope: Envelope?, metadata: EventMetadata)

Delivers a screen view exactly as Transport.screen would, and adds metadata to the envelope the transport stamps for it. properties no longer contain RESERVED_METADATA_KEY.

Link copied to clipboard
abstract fun track(name: String, properties: Map<String, JsonElement>, envelope: Envelope?, metadata: EventMetadata)

Delivers an event exactly as Transport.track would, and adds metadata to the envelope the transport stamps for this event. properties no longer contain RESERVED_METADATA_KEY.