Skip to content

Commit d1e4a92

Browse files
Clarify checkpointing order for receivers (#7545)
This expands the delivery guarantees introduced for network-based receivers to receivers that use checkpointing. The purpose of the requirement is the same: to prevent data losses. See previous PR: #4262
1 parent 8e95d8f commit d1e4a92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

receiver/doc.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// retried. In case of OTLP/HTTP for example, this means that HTTP 429 or 503 response
4040
// is returned.
4141
//
42-
// # Acknowledgment Handling
42+
// # Acknowledgment and Checkpointing
4343
//
4444
// The receivers that receive data via a network protocol that support acknowledgments
4545
// MUST follow this order of operations:
@@ -50,4 +50,8 @@
5050
//
5151
// This ensures there are strong delivery guarantees once the data is acknowledged
5252
// by the Collector.
53+
//
54+
// Similarly, receivers that use checkpointing to remember the position of last processed
55+
// data (e.g. via storage extension) MUST store the checkpoint only AFTER the Consume*()
56+
// call returns.
5357
package receiver // import "go.opentelemetry.io/collector/receiver"

0 commit comments

Comments
 (0)