fix: apply runtime telemetry settings to web and remote clients
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 和用户主动联网请求。
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import { runtimePrivacyEnvironment } from '../../shared/runtime-privacy-environment'
|
||||
export { runtimePrivacyEnvironment } from '../../shared/runtime-privacy-environment'
|
||||
|
||||
import type { LaunchEnvironmentProvider } from '../local-tool-environment/launch-environment-provider'
|
||||
|
||||
export const runtimeProviderEnvironmentNames = [
|
||||
@@ -112,20 +115,6 @@ export type RuntimeProfileCredential = {
|
||||
value: string
|
||||
}
|
||||
|
||||
export const runtimePrivacyEnvironment: NodeJS.ProcessEnv = {
|
||||
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'
|
||||
}
|
||||
|
||||
export function buildRuntimeEnvironment(
|
||||
overrides: NodeJS.ProcessEnv,
|
||||
source: NodeJS.ProcessEnv = process.env
|
||||
|
||||
Reference in New Issue
Block a user