The Data Streams Checkpointer is available asDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/datadog/dd-trace-js/llms.txt
Use this file to discover all available pages before exploring further.
tracer.dataStreamsCheckpointer. It lets you manually set checkpoints for message producers and consumers when automatic instrumentation is not available or insufficient.
Data Streams Monitoring must be enabled via
dsmEnabled: true in TracerOptions or DD_DATA_STREAMS_ENABLED=true for checkpoints to have any effect.Methods
setProduceCheckpoint(type, target, carrier)
Sets a produce checkpoint and injects the DSM propagation context into the provided carrier object.
The streaming technology (e.g.,
kafka, kinesis, sns, sqs, rabbitmq).The target of the data: the topic name, exchange name, or stream name.
The carrier object to inject the DSM context into. This is typically the message headers object.
setConsumeCheckpoint(type, source, carrier, manualCheckpoint?)
Sets a consume checkpoint and extracts the DSM propagation context from the provided carrier.
The streaming technology (e.g.,
kafka, kinesis, sns, sqs).The source of the data: the topic name, queue name, or stream name.
The carrier object to extract the DSM context from. This is typically the message headers object.
Whether this checkpoint was set manually. Defaults to
true.The DSM context associated with the current pathway.
trackTransaction(transactionId, checkpointName, span?)
Records a transaction ID at a named checkpoint without pathway propagation. Tags the active span (or the provided span) with dsm.transaction.id and dsm.transaction.checkpoint.
A unique transaction identifier (truncated to 255 UTF-8 bytes).
A logical checkpoint name. Should be stable and unique per process lifetime (assigned a 1-byte internal ID).
The span to tag. Defaults to the currently active span.
