-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADDED] Sampling in MsgTrace structure (#219)
When an account has a `Trace` field set with a `Destination`, if an incoming message has a `traceparent` header with proper flag indicating that the message should be trace, the `Sampling` integer (value in the range of [1..100]) allows tracing only a random sample of messages. The server will pick a random number below 100 and if that number is lower or equal to this `Sampling` value then the trace will trigger. If above, the trace will not trigger. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters