@deepseek-ai/dsh-otel 0.2.1-alpha.2 → 0.2.1-alpha.4
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.i18n.yaml +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/locale/en.json +5 -0
- package/locale/zh.json +6 -0
- package/package.json +13 -11
package/README.i18n.yaml
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
en: f141a9d909c555d8
|
|
19
19
|
zh: e4f5b690ccb1337c
|
|
20
20
|
/deepseek-ai-dsh-otel/understand-the-implementation:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: 56298bd5a3be2cdb
|
|
22
|
+
zh: 4dff467a0cb30a38
|
|
23
23
|
/deepseek-ai-dsh-otel/further-exploration:
|
|
24
24
|
en: ee17b991de098cc0
|
|
25
25
|
zh: f90257e411921f2b
|
package/README.md
CHANGED
|
@@ -36,6 +36,8 @@ Headers are explicit. The service does not add a channel header or inherit ambie
|
|
|
36
36
|
|
|
37
37
|
`src/index.ts` registers the service; `event-log.ts` owns ordinary SDK batching; `session-log.ts` owns byte/count scheduling; `transport.ts` supplies the Session SDK JSON HTTP delegate and owns the shared exporter metrics recorder, which receives no meter provider and records nothing; `event-transport.ts` uses Got for cancellable ordinary-event HTTP requests and retry waits with SDK serialization and export accounting. No global OTel provider is installed; the accepted exporter options exclude the upstream `selfObsMeterProvider`, and the Session processor accepts only the batching fields it implements, so exporter and Session-processor self-observability metrics stay unrecorded. The Session processor measures each record once, groups conservative sizes, and waits for the SDK concurrency queue to clear after every callback before sending another request.
|
|
38
38
|
|
|
39
|
+
OpenTelemetry SDK dependencies use exact versions from one coordinated release across this service and its two adapters.
|
|
40
|
+
|
|
39
41
|
Composition tests exercise independent channels and service removal; adapter tests cover dependent-fiber cleanup and feedback authorization.
|
|
40
42
|
|
|
41
43
|
<a id="further-exploration"></a>
|
package/README.zh.md
CHANGED
|
@@ -36,6 +36,8 @@ Header 显式提供。服务不会附加 channel header,也不继承环境中
|
|
|
36
36
|
|
|
37
37
|
`src/index.ts` 注册服务;`event-log.ts` 负责普通事件的 SDK 聚合;`session-log.ts` 负责字节和条数调度;`transport.ts` 提供 Session 的 SDK JSON HTTP delegate,并持有共享的 exporter 指标记录器(不接收 meter provider,不记录任何指标);`event-transport.ts` 使用 Got 实现可取消的普通事件 HTTP 请求和重试等待,序列化与导出计数仍由 SDK 负责。不安装全局 OTel provider;接受的 exporter 选项排除上游的 `selfObsMeterProvider`,Session processor 也只接受它实现的聚合字段,因此 exporter 和 Session processor 的自观测指标都不会被记录。Session processor 对每条记录只计量一次,按保守大小组包,并在每次回调后等待 SDK 并发队列清理完成才发送下一请求。
|
|
38
38
|
|
|
39
|
+
本服务及其两个适配器的 OpenTelemetry SDK 依赖使用同一配套版本系列的精确版本。
|
|
40
|
+
|
|
39
41
|
组合测试覆盖独立通道和服务移除;适配器测试覆盖依赖 fiber 清理与反馈授权。
|
|
40
42
|
|
|
41
43
|
<a id="further-exploration"></a>
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-otel",
|
|
3
3
|
"description": "Cordis service for independent ordinary-event and byte-bounded Session-log OTLP channels",
|
|
4
|
-
"version": "0.2.1-alpha.
|
|
4
|
+
"version": "0.2.1-alpha.4",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -19,29 +19,31 @@
|
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
21
|
"./src/*": "./src/*",
|
|
22
|
-
"./package.json": "./package.json"
|
|
22
|
+
"./package.json": "./package.json",
|
|
23
|
+
"./locale/*.json": "./locale/*.json"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
26
|
+
"locale/*.json",
|
|
25
27
|
"lib/index.js",
|
|
26
28
|
"lib/types/**/*.d.ts"
|
|
27
29
|
],
|
|
28
30
|
"license": "MIT",
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"@opentelemetry/api": "^1.9.1",
|
|
31
|
-
"@opentelemetry/api-logs": "
|
|
32
|
-
"@opentelemetry/otlp-exporter-base": "
|
|
33
|
-
"@opentelemetry/resources": "
|
|
34
|
-
"@opentelemetry/sdk-logs": "
|
|
33
|
+
"@opentelemetry/api-logs": "0.222.0",
|
|
34
|
+
"@opentelemetry/otlp-exporter-base": "0.222.0",
|
|
35
|
+
"@opentelemetry/resources": "2.11.0",
|
|
36
|
+
"@opentelemetry/sdk-logs": "0.222.0",
|
|
35
37
|
"@opentelemetry/core": "2.11.0",
|
|
36
|
-
"@opentelemetry/otlp-transformer": "
|
|
38
|
+
"@opentelemetry/otlp-transformer": "0.222.0",
|
|
37
39
|
"got": "^14.6.6"
|
|
38
40
|
},
|
|
39
41
|
"peerDependencies": {
|
|
40
|
-
"@deepseek-ai/cordis": "~4.0.5-alpha.
|
|
41
|
-
"@deepseek-ai/dsh-session": "0.2.1-alpha.
|
|
42
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.4"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
|
-
"@deepseek-ai/cordis": "~4.0.5-alpha.
|
|
45
|
-
"@deepseek-ai/dsh-session": "0.2.1-alpha.
|
|
46
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.4"
|
|
46
48
|
}
|
|
47
49
|
}
|