updating the document for tracing configuration

This commit is contained in:
Shalabh Mohan Shrivastava 2020-05-01 10:00:15 -07:00
parent 1b0db7bf9e
commit 3fc24f9ba7
2 changed files with 9 additions and 13 deletions

View File

@ -39,7 +39,7 @@ spec:
```
`samplingRate` is used to enable or disable the tracing. To disable the sampling rate ,
set `samplingRate : "0"` in the configuration. The valid range of samplingRate is between 0 and 1 inclusive. The sampling rate determines whether a trace span should be sampled or not based. By default, the sampling rate is 1 in 10,000.
set `samplingRate : "0"` in the configuration. The valid range of samplingRate is between 0 and 1 inclusive. The sampling rate determines whether a trace span should be sampled or not based on vallue. `samplingRate : "1"` will always sample the traces.By default, the sampling rate is 1 in 10,000
Please see the [References](#references) section for more details on how to configure tracing on local environment and Kubernetes environment.

View File

@ -65,9 +65,7 @@ metadata:
name: tracing
spec:
tracing:
enabled: true
expandParams: true
includeBody: true
samplingRate: "1"
```
3. When running in the local self hosted mode, you need to launch Dapr with the `--config` parameter:
@ -121,9 +119,7 @@ metadata:
name: tracing
spec:
tracing:
enabled: true
expandParams: true
includeBody: true
samplingRate: "1"
```
5. Use kubectl to apply the above CRD files:
@ -168,15 +164,15 @@ The `tracing` section under the `Configuration` spec contains the following prop
```yml
tracing:
enabled: true
expandParams: true
includeBody: true
samplingRate: "1"
```
The following table lists the different properties.
Property | Type | Description
---- | ------- | -----------
enabled | bool | Set tracing to be enabled or disabled
expandParams | bool | When true, expands parameters passed to HTTP endpoints
includeBody | bool | When true, includes the request body in the tracing event
samplingRate | string | Set sampling rate for tracing to be enabled or disabled.
`samplingRate` is used to enable or disable the tracing. To disable the sampling rate ,
set `samplingRate : "0"` in the configuration. The valid range of samplingRate is between 0 and 1 inclusive. The sampling rate determines whether a trace span should be sampled or not based on vallue. `samplingRate : "1"` will always sample the traces.By default, the sampling rate is 1 in 10,000