otel-java
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenTelemetry in Java
Java 中的 OpenTelemetry
Entry point for OpenTelemetry mechanics in Java services. Load a reference below based on
the task; each reference is self-contained.
Java 服务中 OpenTelemetry 机制的入口。根据任务选择下方的参考文档;每个参考文档都是独立完整的。
References
参考文档
| File | Use when |
|---|---|
| Configuring the SDK via declarative YAML: Javaagent activation, Spring Boot Starter, autoconfigure SDK, BOM, agent-only properties, manual instrumentation entry points. |
| What HTTP instrumentation captures by default (query strings ON, headers/params OFF), query-parameter redaction ( |
| 文件 | 使用场景 |
|---|---|
| 通过声明式 YAML 配置 SDK:Javaagent 激活、Spring Boot Starter、自动配置 SDK、BOM、仅代理属性、手动插桩入口点。 |
| HTTP 插桩默认捕获的内容(查询字符串开启,请求头/参数关闭)、查询参数脱敏( |
Sources of Truth
权威来源
For YAML schema details, fetch the upstream sources listed in the skill.
For Java-specific facts:
otel-declarative-config| Fact | Fetch |
|---|---|
Latest BOM ( | |
| Latest Javaagent | |
SDK declarative-config accepted and preferred | |
Javaagent declarative-config docs (current activation flag, supported | |
| Javaagent declarative-config smoke fixture (parser truth for selected agent tag) | |
| Javaagent CHANGELOG (when each schema rc landed) | |
| Spring Boot Starter declarative-config fixture (selected starter tag) | |
| Spring Boot starter docs | |
| Per-instrumentation telemetry & config (resolved spans/attributes, metrics, config options, target versions) | |
如需了解 YAML schema 详情,请查阅 技能中列出的上游来源。
针对 Java 相关的信息:
otel-declarative-config| 信息 | 获取方式 |
|---|---|
最新 BOM( | |
| 最新 Javaagent | |
选定 BOM 版本对应的 SDK 声明式配置支持且推荐的 | |
Javaagent 声明式配置文档(当前激活标志、支持的 | |
| Javaagent 声明式配置测试用例(对应选定代理版本的解析基准) | |
| Javaagent 更新日志(各 schema 候选版本的发布时间) | |
| Spring Boot Starter 声明式配置测试用例(对应选定 Starter 版本) | |
| Spring Boot Starter 文档 | |
| 各插桩组件的遥测数据与配置(已解析的 Span/属性、指标、配置选项、目标版本) | |
What telemetry does an instrumentation emit?
插桩组件会生成哪些遥测数据?
For "what does the agent produce for library X" — which spans, attributes, metrics, or config
knobs — use the OpenTelemetry Ecosystem Explorer, which fully
maps the Java agent and exposes an agent-friendly surface (Markdown indexes and resolved JSON, no
scraping). Do not answer from model memory.
Navigation:
- — table mapping display name →
WebFetch https://explorer.opentelemetry.io/agent/javaagent/index.md→ the instrumentation's JSON data URL (the URL embeds the contentid).<hash> - that JSON URL — one self-contained record (a few KB): resolved
WebFetch,configurations(spans withtelemetry+ typed attributes, andspan_kind),metrics,javaagent_target_versions, andsemantic_conventions.scope
Version-specific or "what changed between releases":
lists versions and marks the latest;
gives the
→ map for a version — a differing hash for the same across two versions means that
instrumentation changed. Schema:
; use
for the agent-oriented index and for the full documentation.
https://explorer.opentelemetry.io/agent/javaagent/versions.mdhttps://explorer.opentelemetry.io/data/javaagent/versions/<version>-index.jsonidhashidhttps://explorer.opentelemetry.io/schemas/javaagent-instrumentation.schema.json/llms.txt/llms-full.txtPrefer this Explorer data over the raw YAML on GitHub: the Explorer applies
upstream metadata corrections that the raw registry does not.
ecosystem-registry针对「代理为库 X 生成了什么内容」这类问题——包括哪些 Span、属性、指标或配置选项——请使用 OpenTelemetry 生态浏览器,它完整映射了 Java 代理并提供了面向代理的界面(Markdown 索引和已解析的 JSON,无需爬取)。请勿依赖模型记忆回答。
导航步骤:
- —— 显示名称 →
WebFetch https://explorer.opentelemetry.io/agent/javaagent/index.md→ 插桩组件 JSON 数据 URL 的映射表(URL 中包含内容id)。<hash> - 该 JSON URL —— 一个独立完整的记录(几 KB):已解析的
WebFetch、configurations(包含telemetry和类型化属性的 Span,以及span_kind)、metrics、javaagent_target_versions和semantic_conventions。scope
特定版本或「版本间有哪些变化」相关内容:
列出了所有版本并标记最新版本;
提供了对应版本的 → 映射——同一 在两个版本中的 不同意味着该插桩组件发生了变化。Schema 地址:
;使用 获取面向代理的索引,使用 获取完整文档。
https://explorer.opentelemetry.io/agent/javaagent/versions.mdhttps://explorer.opentelemetry.io/data/javaagent/versions/<version>-index.jsonidhashidhashhttps://explorer.opentelemetry.io/schemas/javaagent-instrumentation.schema.json/llms.txt/llms-full.txt优先使用该浏览器数据,而非 GitHub 上的原始 YAML:浏览器应用了上游元数据修正,而原始注册表没有这些修正。
ecosystem-registryCross-References
交叉引用
- Schema-level facts: skill (language-agnostic YAML schema sources).
otel-declarative-config - SDK version selection across languages: skill.
otel-sdk-versions - Semantic conventions lookup: skill.
otel-semantic-conventions
- Schema 层面的信息:技能(与语言无关的 YAML schema 来源)。
otel-declarative-config - 跨语言 SDK 版本选择:技能。
otel-sdk-versions - 语义规范查询:技能。
otel-semantic-conventions