This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new cbb2e17 Update configuration-vocabulary.md and trace-sampling.md
(#5409)
cbb2e17 is described below
commit cbb2e1793bbe55c566134d06c70fd2fefb1ecaa4
Author: zifeihan <[email protected]>
AuthorDate: Sat Aug 29 15:29:52 2020 +0800
Update configuration-vocabulary.md and trace-sampling.md (#5409)
---
docs/en/setup/backend/configuration-vocabulary.md | 1 +
docs/en/setup/backend/trace-sampling.md | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/docs/en/setup/backend/configuration-vocabulary.md
b/docs/en/setup/backend/configuration-vocabulary.md
index 15bf881..87df0b3 100644
--- a/docs/en/setup/backend/configuration-vocabulary.md
+++ b/docs/en/setup/backend/configuration-vocabulary.md
@@ -133,6 +133,7 @@ core|default|role|Option values,
`Mixed/Receiver/Aggregator`. **Receiver** mode
| agent-analyzer | default | Agent Analyzer. | SW_AGENT_ANALYZER | default |
| - | -| sampleRate|Sampling rate for receiving trace. The precision is
1/10000. 10000 means 100% sample in default.|SW_TRACE_SAMPLE_RATE|10000|
| - | - |slowDBAccessThreshold|The slow database access thresholds. Unit
ms.|SW_SLOW_DB_THRESHOLD|default:200,mongodb:100|
+| - | - |forceSampleErrorSegment|When sampling mechanism activated, this
config would make the error status segment sampled, ignoring the sampling
rate.|SW_FORCE_SAMPLE_ERROR_SEGMENT|true|
| receiver-sharing-server|default| Sharing server provides new gRPC and
restful servers for data collection. Ana make the servers in the core module
working for internal communication only.| - | - |
| - | - | restHost| Binding IP of restful service. Services include GraphQL
query and HTTP data report| - | - |
| - | - | restPort | Binding port of restful service | - | - |
diff --git a/docs/en/setup/backend/trace-sampling.md
b/docs/en/setup/backend/trace-sampling.md
index d54df83..3dd42a0 100644
--- a/docs/en/setup/backend/trace-sampling.md
+++ b/docs/en/setup/backend/trace-sampling.md
@@ -15,10 +15,14 @@ agent-analyzer:
default:
...
sampleRate: ${SW_TRACE_SAMPLE_RATE:1000} # The sample rate precision is
1/10000. 10000 means 100% sample in default.
+ forceSampleErrorSegment: ${SW_FORCE_SAMPLE_ERROR_SEGMENT:true} # When
sampling mechanism activated, this config would make the error status segment
sampled, ignoring the sampling rate.
```
-`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.
+
+`forceSampleErrorSegment` is for you to open force save some error segment
when sampling mechanism active.
+When sampling mechanism activated, this config would make the error status
segment sampled, ignoring the sampling rate.
# Recommendation
You could set different backend instances with different `sampleRate` values,
but we recommend you to set the same.