Skip to content

Commit 23da941

Browse files
author
niuweili
committed
feat: update default value
1 parent 660d5fb commit 23da941

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

flashduty/en/2. RUM/2. Applications/3. Advanced Configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,15 @@ flashcatRum.init({
476476
version: "1.0.0", // Application version
477477
sessionSampleRate: 100, // Sampling rate
478478
allowedTracingUrls: ["https://api.example.com", /https:\/\/.*\.my-api-domain\.com/, (url) => url.startsWith("https://api.example.com")], // A list of request URLs used to inject tracing headers.
479-
traceSampleRate: 20 // Optional,The percentage of requests to trace: 100 for all, 0 for none.
479+
traceSampleRate: 20 // Optional,The percentage of requests to trace: 100 for all, 0 for none. Default value: 100
480480
});
481481
```
482482
483483
allowedTracingUrls matches the full URL (`<scheme>://<host>[:<port>]/<path>[?<query>][#<fragment>]`). It accepts the following types:
484484

485-
- **string:** matches any URL that starts with the value, so `https://api.example.com` matches `https://api.example.com/v1/resource`.
485+
- **String:** matches any URL that starts with the value, so `https://api.example.com` matches `https://api.example.com/v1/resource`.
486486
- **RegExp:** executes a test with the provided RegExp and the URL.
487-
- **function:** evaluates with the URL as parameter. Returning a boolean set to true indicates a match.
487+
- **Function:** evaluates with the URL as parameter. Returning a boolean set to true indicates a match.
488488

489489
## Considerations
490490

flashduty/zh/2. RUM/2. 应用管理/3. 高级配置.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,15 @@ flashcatRum.init({
476476
version: "1.0.0", // 应用版本号
477477
sessionSampleRate: 100, // 采样率
478478
allowedTracingUrls: ["https://api.example.com", /https:\/\/.*\.my-api-domain\.com/, (url) => url.startsWith("https://api.example.com")], // 需要跟踪的url列表
479-
traceSampleRate: 20 // 可选参数,要跟踪的请求百分比:100为所有,0为无。
479+
traceSampleRate: 20 // 可选参数,要跟踪的请求百分比:100为所有,0为无。默认值:100
480480
});
481481
```
482482
483483
allowedTracingUrls 匹配完整 URL(`<scheme>://<host>[:<port>]/<path>[?<query>][#<fragment>]`)。它接受以下类型:
484484

485-
- **string** 匹配任何以该值开头的 URL,例如 `https://api.example.com ` 匹配 `https://api.example.com/v1/resource`
485+
- **String** 匹配任何以该值开头的 URL,例如 `https://api.example.com ` 匹配 `https://api.example.com/v1/resource`
486486
- **RegExp** 使用正则表达式的 test() 方法检查 URL 是否匹配。
487-
- **function:** 接收 URL 作为参数执行回调函数,当函数返回 `true` 时表示 URL 匹配成功。
487+
- **Function** 接收 URL 作为参数执行回调函数,当函数返回 `true` 时表示 URL 匹配成功。
488488

489489
## 注意事项
490490

0 commit comments

Comments
 (0)