You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/02/22 13:19:52 UTC
[skywalking] branch 8.8.x updated: Remove inapplicable example for enforcer / dropper sampler in LAL doc (#8574)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch 8.8.x
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/8.8.x by this push:
new 7cfd2d2 Remove inapplicable example for enforcer / dropper sampler in LAL doc (#8574)
7cfd2d2 is described below
commit 7cfd2d2e7599906926393105fae246c7bb1d5438
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue Feb 22 21:19:35 2022 +0800
Remove inapplicable example for enforcer / dropper sampler in LAL doc (#8574)
---
docs/en/concepts-and-designs/lal.md | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/docs/en/concepts-and-designs/lal.md b/docs/en/concepts-and-designs/lal.md
index 65ef65c..6032a47 100644
--- a/docs/en/concepts-and-designs/lal.md
+++ b/docs/en/concepts-and-designs/lal.md
@@ -336,21 +336,3 @@ filter {
}
}
```
-
-You can use `enforcer` and `dropper` to simulate a probabilistic sampler like this.
-
-```groovy
-filter {
- // ... parser
-
- sink {
- sampler { // simulate a probabilistic sampler with sampler rate 30% (not accurate though)
- if (Math.abs(Math.random()) > 0.3) {
- enforcer {}
- } else {
- dropper {}
- }
- }
- }
-}
-```