@blueking/open-telemetry 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/bk-rum.global.js +1 -1
- package/dist/bk-rum.global.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/bk-rum-otele/SKILL.md +1 -1
- package/skills/bk-rum-otele/references/configuration.md +4 -2
- package/skills/bk-rum-otele/references/troubleshooting.md +1 -1
package/package.json
CHANGED
|
@@ -88,7 +88,7 @@ CDN:
|
|
|
88
88
|
</script>
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
`transport.endpoint`
|
|
91
|
+
`transport.endpoint` 填上报根地址(不含路径前缀),SDK 自动拼 `/v1/rum`、`/v1/metrics`、`/v1/logs`;若通过 `transport.signals.endpoints` 或单信号 `endpoint` 自定义了某一类地址,则该信号使用自定义 URL,不再拼接。`token` 作为 `Authorization: Bearer <token>` 默认头。构造后默认 `autoStart: true` 自动启动,无需手动 `start()`。
|
|
92
92
|
|
|
93
93
|
## 默认采集能力清单
|
|
94
94
|
|
|
@@ -185,14 +185,14 @@ new BkOpenTelemetry({
|
|
|
185
185
|
|
|
186
186
|
# 上报与采样
|
|
187
187
|
|
|
188
|
-
SDK 使用 OTLP HTTP exporter 分别上报 traces、metrics、logs。默认 endpoint 是 `http://localhost:4318`,会自动拼接 `/rum`、`/metrics`、`/logs`。
|
|
188
|
+
SDK 使用 OTLP HTTP exporter 分别上报 traces、metrics、logs。默认 endpoint 是 `http://localhost:4318`,会自动拼接 `/v1/rum`、`/v1/metrics`、`/v1/logs`。
|
|
189
189
|
|
|
190
190
|
## 统一 endpoint
|
|
191
191
|
|
|
192
192
|
```ts
|
|
193
193
|
new BkOpenTelemetry({
|
|
194
194
|
transport: {
|
|
195
|
-
endpoint: 'https://rum-collector.example.com
|
|
195
|
+
endpoint: 'https://rum-collector.example.com',
|
|
196
196
|
token: 'report-token',
|
|
197
197
|
},
|
|
198
198
|
});
|
|
@@ -235,6 +235,8 @@ new BkOpenTelemetry({
|
|
|
235
235
|
});
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
+
自定义的 `signals.endpoints.*`(或单信号 `endpoint`)会原样使用,不再基于外层 `endpoint` 拼接 `/v1/...`。
|
|
239
|
+
|
|
238
240
|
`transport.token` 会生成默认 `Authorization: Bearer <token>`,显式配置的 `headers` 会继续合并进去。
|
|
239
241
|
|
|
240
242
|
## 避免自循环采集
|