mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
feat(bundle): default session telemetry to feedback-gated sharing
This commit is contained in:
@@ -138,11 +138,13 @@
|
||||
- id: session-projection
|
||||
name: '@deepseek-ai/dsh-session-projection'
|
||||
|
||||
# Session telemetry is mounted but disabled by default. DSH_TELEMETRY_MODE
|
||||
# explicitly opts into FULL or FEEDBACK_ONLY reporting; uploading mirrors
|
||||
# session-log records onto OTLP/HTTP logs with no session-telemetry/record redaction
|
||||
# rule, so exports are the raw captured copy. The deployment stance, env
|
||||
# seams, and follow-ups are pinned in the default-off Agent Note.
|
||||
# Session telemetry defaults to feedback-gated sharing: FEEDBACK_ONLY
|
||||
# uploads the canonical session-log prefix only after the user records
|
||||
# /feedback. DSH_TELEMETRY_MODE overrides to FULL or DISABLED; uploading
|
||||
# mirrors session-log records onto OTLP/HTTP logs with no session-telemetry/record
|
||||
# redaction rule, so exports are the raw captured copy. The deployment
|
||||
# stance, env seams, and follow-ups are pinned in the feedback-gated-default
|
||||
# Agent Note.
|
||||
# DSH_TELEMETRY_OTLP_URL overrides the production endpoint. A non-empty
|
||||
# DSH_TELEMETRY_DISABLED — any value, including '0'/'false' — opts the
|
||||
# process out (the launchers patch the row disabled; config cannot disable
|
||||
@@ -160,7 +162,7 @@
|
||||
- id: session-telemetry-otel
|
||||
name: '@deepseek-ai/dsh-session-telemetry-otel'
|
||||
config:
|
||||
mode: !!js process.env.DSH_TELEMETRY_MODE || 'DISABLED'
|
||||
mode: !!js process.env.DSH_TELEMETRY_MODE || 'FEEDBACK_ONLY'
|
||||
shutdownTimeoutMillis: 3000
|
||||
exporter:
|
||||
url: !!js process.env.DSH_TELEMETRY_OTLP_URL ?? 'https://harness-telemetry.deepseeksvc.com/v1/logs'
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('dsh-base bundle', () => {
|
||||
expect(rows.length).toBeGreaterThan(50)
|
||||
expect(rows.some(row => row.id === 'agent-loop')).toBe(true)
|
||||
expect(rows.find(row => row.id === 'session-telemetry-otel')?.config?.['mode']).toEqual({
|
||||
__jsExpr: "process.env.DSH_TELEMETRY_MODE || 'DISABLED'",
|
||||
__jsExpr: "process.env.DSH_TELEMETRY_MODE || 'FEEDBACK_ONLY'",
|
||||
})
|
||||
expect(rows.find(row => row.id === 'hmr')).toMatchObject({
|
||||
disabled: true,
|
||||
|
||||
Reference in New Issue
Block a user