Package datadog.trace.api.experimental
Interface DataStreamsCheckpointer
- All Known Implementing Classes:
DataStreamsCheckpointer.NoOp
public interface DataStreamsCheckpointer
An interface to Data Streams checkpointer, allowing passing the context manually.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DataStreamsCheckpointerget()voidsetConsumeCheckpoint(String type, String source, DataStreamsContextCarrier carrier) voidsetProduceCheckpoint(String type, String target, DataStreamsContextCarrier carrier) voidtrackTransaction(String transactionId, String checkpointName)
-
Method Details
-
get
-
setConsumeCheckpoint
- Parameters:
type- The type of the checkpoint, usually the streaming technology being used. Examples: kafka, kinesis, sns etc.source- The source of data. For instance: topic, exchange or stream name.carrier- An interface to the context carrier, from which the context will be extracted. I.e. wrapper around message headers.
-
trackTransaction
- Parameters:
transactionId- Transaction ID to track.checkpointName- Unique checkpoint name.
-
setProduceCheckpoint
- Parameters:
type- The type of the checkpoint, usually the streaming technology being used. Examples: kafka, kinesis, sns etc.target- The destination to which the data is being sent. For instance: topic, exchange or stream name.carrier- An interface to the context carrier, to which the context will be injected. I.e. wrapper around message headers.
-