Skip to content

Filter OTLP telemetry from Amp VS Code hitting /api/otel/v1/metrics #660

@moxi000

Description

@moxi000

Summary

部署后日志里出现大量 OTLP 指标上报请求,路径 /api/otel/v1/metrics,来自 Amp VS Code 插件(非业务流量),服务未实现该路由导致 404 噪声。

Details

  • User-Agent: OTel-OTLP-Exporter-JavaScript/0.208.0
  • Headers: X-Amp-Client-Type: vscode, X-Amp-Client-Application: VS Code Insiders, X-Amp-Client-Version: 0.0.1766246945
  • Auth header: Bearer sk-*** (来自已配置的 API key)
  • 状态码: 404 (服务未提供 /api/otel/v1/metrics)
  • 请求示例: 见附日志(资源属性包含 host.name=Mac-mini.local, process.runtime.name=nodejs 等)。

Expected

  • 该类遥测请求不应落到业务代理,或被静默过滤/早返回,避免日志噪声。

Actual

  • 每次 VS Code 插件运行都会发 OTLP 指标到 /api/otel/v1/metrics,产生大量 404 记录。

Request

  • 请维护方评估:是否需要在网关/路由层过滤或提供空实现以减少噪声;或更新文档指引用户关闭插件遥测。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions