Skip to content

Commit d7dc24e

Browse files
committed
document sampling_priority.h
1 parent 6ae80cb commit d7dc24e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/datadog/sampling_priority.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
#pragma once
22

3+
// This component defines an enumeration of "sampling priority" values.
4+
//
5+
// Sampling priority is a hybrid between a sampling decision ("keep" versus
6+
// "drop") and a sampling reason ("user-specified rule"). Values less than or
7+
// equal to zero indicate a decision to "drop," while positive values indicate
8+
// a decision to "keep."
9+
//
10+
// The "priority" in the term "sampling priority" is a misnomer, since the
11+
// value does not denote any relationship among the different kinds of sampling
12+
// decisions.
13+
314
#include "sampling_mechanism.h"
415

516
namespace datadog {

0 commit comments

Comments
 (0)