wu-sheng commented on a change in pull request #5409:
URL: https://github.com/apache/skywalking/pull/5409#discussion_r479609383
##########
File path: docs/en/setup/backend/trace-sampling.md
##########
@@ -15,10 +15,18 @@ agent-analyzer:
default:
...
sampleRate: ${SW_TRACE_SAMPLE_RATE:1000} # The sample rate precision is
1/10000. 10000 means 100% sample in default.
+ slowDBAccessThreshold: ${SW_SLOW_DB_THRESHOLD:default:200,mongodb:100} #
The slow database access thresholds. Unit ms.
+ forceSampleErrorSegment: ${SW_FORCE_SAMPLE_ERROR_SEGMENT:true} # When
sampling mechanism active, this config can open(true) force save some error
segment. true is default.
```
-`sampleRate` is for you to set sample rate to this backend.
-The sample rate precision is 1/10000. 10000 means 100% sample in default.
+`sampleRate` is for you to set sample rate to this backend.
+The sample rate precision is 1/10000. 10000 means 100% sample in default.
+
+`slowDBAccessThreshold` is for you to set slow database access thresholds.
Review comment:
We don't sample the segment if the statement is slow, right?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]