DS Web and remote Agent launch paths omitted shared telemetry opt-out settings. Reuse one environment definition for local launches, remote runtime profiles, and the remote model bridge helper while preserving existing update controls and user-requested networking. Validation: 16 focused tests passed at commit time. Prior local real-model validation passed; modified Agent real-Host validation and background network monitoring remain outstanding. Release note: 补齐 DS Web 与远程 Runtime 启动时的遥测关闭配置,保留现有自动更新关闭设置,不影响模型、MCP 和用户主动联网请求。
15 lines
546 B
TypeScript
15 lines
546 B
TypeScript
/** Disable optional Runtime telemetry without restricting user-requested networking. */
|
|
export const runtimePrivacyEnvironment: Readonly<NodeJS.ProcessEnv> = Object.freeze({
|
|
DO_NOT_TRACK: '1',
|
|
OTEL_EXPORTER_OTLP_ENDPOINT: '',
|
|
OTEL_EXPORTER_OTLP_HEADERS: '',
|
|
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT: '',
|
|
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: '',
|
|
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: '',
|
|
OTEL_LOGS_EXPORTER: 'none',
|
|
OTEL_LOG_USER_PROMPTS: '0',
|
|
OTEL_METRICS_EXPORTER: 'none',
|
|
OTEL_SDK_DISABLED: 'true',
|
|
OTEL_TRACES_EXPORTER: 'none'
|
|
})
|