Skip to content

Commit 3cd912f

Browse files
committed
fix(network): record the proxy dependencies under apps/sim and register the proxy agent as egress infrastructure
1 parent f19a3d8 commit 3cd912f

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/sim/instrumentation-node.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ async function initializeOpenTelemetry() {
176176
const { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION, ATTR_DEPLOYMENT_ENVIRONMENT } = await import(
177177
'@opentelemetry/semantic-conventions/incubating'
178178
)
179-
const { otlpExporterProxyOptions } = await import('./lib/core/network/proxy-agent.server')
179+
const { otlpExporterProxyOptions } = await import('@/lib/core/network/proxy-agent.server')
180180
const exporterProxyOptions = otlpExporterProxyOptions()
181181
const { OTLPTraceExporter } = await import('@opentelemetry/exporter-trace-otlp-http')
182182
const { OTLPMetricExporter } = await import('@opentelemetry/exporter-metrics-otlp-http')

‎bun.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/check-egress-boundary.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ const ALLOWED = new Set([
7878
'apps/sim/lib/internal/oracledb/connect-proxy.ts',
7979
// Streaming MCP transport, built on the guard's pinned dispatcher.
8080
'apps/sim/lib/mcp/pinned-fetch.ts',
81+
// The operator's HTTPS_PROXY agent for SDKs with their own HTTP stack (AWS,
82+
// OTLP). It only changes how an SDK reaches the endpoint the SDK chose; it
83+
// never takes a URL, so it adds no destination a caller could supply.
84+
'apps/sim/lib/core/network/proxy-agent.server.ts',
8185
])
8286

8387
function walk(dir: string, out: string[] = []): string[] {

0 commit comments

Comments
 (0)