# 应用性能管理

Gartner将其此前的APM魔力象限并入单一的[可观测性](https://www.edgepedia.org/zh/observability)平台类别，其定义为用于理解应用、服务和基础设施的健康状况、性能与行为的产品，这反映出APM已融入更广泛的可观测性市场，同时仍是其中最大的应用侧细分市场。<sup>[1](https://analysis-atlas.com/research/observability-apm-market-analysis/)</sup><sup> • </sup><sup>[2](https://dataintelo.com/report/observability-market)</sup>

| 关键事实 | 详情 |
|---|---|
| 市场规模 | 两份分析师估算对2025年的数据存在分歧：107亿美元（高于2024年的96.6亿美元，复合年增长率10.8%）对比87.4亿美元（预计到2035年达276.3亿美元，复合年增长率11.8%）<sup>[3](https://www.giiresearch.com/report/tbrc1426318-application-performance-monitoring-global-market.html)</sup><sup> • </sup><sup>[4](https://www.emergenresearch.com/press-release/global-application-performance-monitoring-market)</sup> |
| 可观测性占比 | 2025年APM占可观测性市场总收入的28.3%，是最大的应用子细分市场，应用复合年增长率为18.1%<sup>[2](https://dataintelo.com/report/observability-market)</sup> |
| 核心信号 | 指标（计数器、仪表、直方图）、分布式追踪（span的有向无环图）和日志，可通过追踪标识符或请求标识符进行关联<sup>[5](https://opentelemetry.io/docs/specs/otel/overview/)</sup><sup> • </sup><sup>[6](https://dl.acm.org/doi/10.1145/3501297)</sup> |
| 代理开销 | 现代监控代理的设计目标是将影响降至最低，通常CPU开销低于2%；在DeepFlow系统中，基于eBPF的零代码追踪每次系统调用增加的延迟不超过588纳秒<sup>[7](https://axis-intelligence.com/best-saas-monitoring-tools-comparison-2025/)</sup><sup> • </sup><sup>[8](https://dl.acm.org/doi/pdf/10.1145/3603269.3604823)</sup> |
| 企业成本 | 一个拥有500台主机、包含基础设施、APM和每天50 GB日志的部署，Dynatrace标价约为38万至52万美元，Datadog为42万至68万美元，New Relic为29万至45万美元，协商折扣为35%至52%<sup>[9](https://vendorbenchmark.com/blog/dynatrace-vs-datadog-vs-new-relic-pricing-benchmark)</sup> |
| 标准 | OpenTelemetry是一个CNCF毕业的厂商中立框架，在指标（57%）、追踪（50%）和日志（48%）方面得到广泛使用<sup>[10](https://grafana.com/press/2026/03/18/grafana-labs-4th-annual-observability-survey-reveals-a-field-at-a-crossroads-ai-economics-complexity-and-the-enduring-power-of-open-source/)</sup> |

## 核心概念与指标

典型指标包括CPU利用率百分比、每秒请求数、错误率，以及p50、p95和p99等延迟百分位数，分别报告第50、95和99百分位请求的响应时间。指标支持趋势分析和告警，但缺乏单个请求的详细信息。<sup>[11](https://dev.to/ciroveldran/best-apm-tools-2026-complete-comparison-for-cloud-architects-31nj)</sup>

[OpenTelemetry](https://www.edgepedia.org/zh/opentelemetry)的指标模型按测量内容区分测量工具类型：计数器用于递增的值，仪表用于当前值，直方图用于测量的分布，每种类型要么是同步的（与工作内联调用），要么是异步的（基于回调）。<sup>[5](https://opentelemetry.io/docs/specs/otel/overview/)</sup> 在微服务故障分析中，追踪和日志被视为独立的可观测性信号。<sup>[6](https://dl.acm.org/doi/10.1145/3501297)</sup>

## 工作原理

**插桩。** [Dynatrace](https://www.edgepedia.org/zh/dynatrace)的OneAgent每台主机部署一次，自动发现服务、追踪事务并映射依赖关系；对于支持的运行时，其PurePath追踪无需修改代码或导入库即可捕获，提供方法级可见性，代价是插桩控制粒度较粗且代理占用较重。Datadog则要求向每个服务添加其dd-trace追踪库（Java、Python、Node、Go、Ruby、.NET、PHP），并以每主机每月12美元的价格出售Continuous Profiler以获取代码级性能数据。<sup>[12](https://devhelm.io/blog/datadog-vs-dynatrace)</sup> 第三种方法将代理完全从应用中移除：基于eBPF的零代码追踪从内核观察系统调用。DeepFlow系统在固有开销之外，每次系统调用增加的延迟不超过588纳秒，其扩展钩子（ssl_read、uprobe、uretprobe）在钩子自身6153纳秒开销之上增加不到423纳秒；在两个基准测试中，每次追踪产生18和38个span，而对比工具为6个，开销不超过7%。<sup>[8](https://dl.acm.org/doi/pdf/10.1145/3603269.3604823)</sup>

**分布式追踪。** 追踪通常对应用服务进行插桩，为每个用户请求分配唯一ID，将其传播到处理该请求所涉及的服务，并记录服务调用时间；该ID也可包含在日志消息中，以便通过它识别同一请求的事件。<sup>[6](https://dl.acm.org/doi/10.1145/3501297)</sup> 在OpenTelemetry的模型中，分布式追踪是由单一逻辑操作触发的一组事件，跨应用组件整合并跨越进程、网络和安全边界；追踪是span的有向无环图，其边为父子关系，SpanContext携带必须跨进程边界传播的追踪标识符。<sup>[5](https://opentelemetry.io/docs/specs/otel/overview/)</sup> span表示服务内的一个计时操作，追踪投射为调用图，其节点和边携带服务标识、延迟、重试和错误码等属性；在已追踪的微服务系统中，单个用户请求可能在多个服务间产生15到30个span。<sup>[13](https://www.frontiersin.org/journals/computer-science/articles/10.3389/fcomp.2026.1783945/full)</sup><sup> • </sup><sup>[11](https://dev.to/ciroveldran/best-apm-tools-2026-complete-comparison-for-cloud-architects-31nj)</sup>

**传播与管道。** W3C Trace Context规范定义了交换追踪上下文的通用约定格式，为单个追踪和请求提供唯一标识符，使来自多个提供商的追踪数据能够关联。其traceparent头以可移植的固定长度格式描述传入请求在其追踪图中的位置，专为快速解析而设计，实现该规范的追踪工具必须正确设置它；可选的tracestate头以厂商特定的名称/值对对其进行扩展。<sup>[14](https://www.w3.org/TR/trace-context-2/)</sup> 在下游，OpenTelemetry Collector从由OpenTelemetry或其他库（如Jaeger和[Prometheus](https://www.edgepedia.org/zh/prometheus)）插桩的进程中收集追踪、指标和其他遥测数据，执行聚合和智能采样，并导出到一个或多个后端，同时丰富或转换遥测数据。<sup>[5](https://opentelemetry.io/docs/specs/otel/overview/)</sup>

## 数据一览

市场规模估算存在分歧。一份分析师报告认为2025年APM市场为107亿美元，高于2024年的96.6亿美元，复合年增长率为10.8%；另一份认为2025年为87.4亿美元，预计到2035年达276.3亿美元，复合年增长率为11.8%。两者都认同两位数增长；绝对水平相差约20亿美元，因此这些数字最好视为指示性范围。<sup>[3](https://www.giiresearch.com/report/tbrc1426318-application-performance-monitoring-global-market.html)</sup><sup> • </sup><sup>[4](https://www.emergenresearch.com/press-release/global-application-performance-monitoring-market)</sup>

**定价。** 可观测性厂商按发送的遥测数据量计费：摄入的日志GB数、跟踪的自定义指标数、保留的追踪数和监控的主机数。<sup>[1](https://analysis-atlas.com/research/observability-apm-market-analysis/)</sup> Datadog、[New Relic](https://www.edgepedia.org/zh/new-relic)、Splunk和大多数其他商业平台主要按数据量收费，日志按摄入GB计费，自定义指标按主机计费，追踪按span计费，APM按主机计费——这种模式设计于遥测数据随流量线性扩展的时代。<sup>[15](https://www.practicallogix.com/the-observability-cost-crisis-why-84-of-enterprises-are-drowning-in-telemetry-and-how-opentelemetry-is-forcing-a-reckoning/)</sup> Dynatrace在2022至2024年间迁移至其Davis平台订阅（DPS）模式，取代了按主机单位定价；基础设施监控每台全栈监控主机每小时消耗约8个DPS，DPS单位标价约为每小时0.08美元。<sup>[9](https://vendorbenchmark.com/blog/dynatrace-vs-datadog-vs-new-relic-pricing-benchmark)</sup>

**成本压力。** 可观测性厂商[Honeycomb](https://www.edgepedia.org/zh/honeycomb)的联合创始人Charity Majors写道，她见过单个自定义指标每月花费3万美元，可观测性账单的增长速度可以是流量的3到10倍。<sup>[1](https://analysis-atlas.com/research/observability-apm-market-analysis/)</sup> 即使只在组织的一小部分服务中加入AI，也会使可观测性支出增加四到八倍，因为LLM可观测性可能涉及词元级成本归因、提示和响应日志记录以及向量数据库查询追踪。<sup>[15](https://www.practicallogix.com/the-observability-cost-crisis-why-84-of-enterprises-are-drowning-in-telemetry-and-how-opentelemetry-is-forcing-a-reckoning/)</sup>

## 与相关学科的比较

Gartner将其此前的APM魔力象限并入单一的可观测性平台类别，可观测性厂商按发送的遥测数据量计费：摄入的日志GB数、跟踪的自定义指标数、保留的追踪数和监控的主机数。<sup>[1](https://analysis-atlas.com/research/observability-apm-market-analysis/)</sup>

与**数字体验监控**的边界正从另一侧变得模糊。当今的APM产品让团队实时查看应用事务的运行情况、在代码级别诊断问题、跟踪Apdex分数和[Core Web Vitals](https://www.edgepedia.org/zh/core-web-vitals)等用户体验指标、映射依赖关系，并且越来越多地支持会话回放和错误监控。<sup>[2](https://dataintelo.com/report/observability-market)</sup>

## 标准与OpenTelemetry

OpenTelemetry是一个开源、厂商和工具无关的框架，用于追踪、指标和日志等遥测数据；它本身不是可观测性后端，可与Jaeger和Prometheus等开源工具以及商业产品配合使用。它包含所有组件的规范、定义遥测数据形态的标准协议、具有标准命名方案的语义约定、定义如何生成遥测数据的API、语言SDK、自动插桩组件以及库生态系统。其宣称的原则是用户拥有其生成的数据，无厂商锁定，用户只需学习一套API和约定。<sup>[16](https://opentelemetry.io/docs/what-is-opentelemetry/)</sup>

OpenTelemetry获得了CNCF毕业状态，基金会称其为虽无正式名分却已是事实上的可观测性标准，并将其列为云原生生态系统中第二繁忙的项目，仅次于[Kubernetes](https://www.edgepedia.org/zh/kubernetes)。<sup>[17](https://www.ciopages.com/buyer-guides/observability-apm-platform)</sup> 一份同行评审的综述同样将OpenTelemetry的跨语言API、SDK和厂商中立规范描述为追踪插桩和上下文传播的事实行业标准。<sup>[13](https://www.frontiersin.org/journals/computer-science/articles/10.3389/fcomp.2026.1783945/full)</sup> 实际后果是商业性的：团队可以对应用进行一次插桩，然后将产生的遥测数据导出到任何地方，无需重新插桩代码即可切换后端，这可以减少与专有代理和SDK相关的锁定，并赋予有工程能力的组织谈判定价的筹码。<sup>[1](https://analysis-atlas.com/research/observability-apm-market-analysis/)</sup><sup> • </sup><sup>[4](https://www.emergenresearch.com/press-release/global-application-performance-monitoring-market)</sup> 在已将OpenTelemetry投入生产的组织中，89%将厂商合规性评为关键或非常重要，而在仍在评估的团队中这一比例为37%。<sup>[18](https://www.elastic.co/blog/2026-observability-trends-generative-ai-opentelemetry)</sup>

## 近期发展

**OpenTelemetry采用。** OpenTelemetry已不再是小众选择：它在指标（57%）、追踪（50%）和日志（48%）方面得到广泛使用，从业者将易采用性（41%）和自由切换厂商（37%）列为首要原因。近三分之二的组织（65%）同时投资于Prometheus和OpenTelemetry，OpenTelemetry显示出更强的增长信号，35%正在构建概念验证，而Prometheus为18%。<sup>[10](https://grafana.com/press/2026/03/18/grafana-labs-4th-annual-observability-survey-reveals-a-field-at-a-crossroads-ai-economics-complexity-and-the-enduring-power-of-open-source/)</sup> 厂商提供的OpenTelemetry发行版从44%增至60%，同比增长36%，而自定义和原版发行版下降，这意味着团队越来越多地从其后端厂商获取插桩，但采用标准格式。<sup>[18](https://www.elastic.co/blog/2026-observability-trends-generative-ai-opentelemetry)</sup> 新产品从一开始就基于该标准构建：2026年发布的Amazon CloudWatch Omni基于OpenTelemetry构建，现有遥测数据无需重新配置即可显示，非AWS工作负载可将遥测数据发送到OTLP端点。<sup>[19](https://aws.amazon.com/blogs/aws/introducing-amazon-cloudwatch-omni-collaborative-ai-powered-observability-for-your-applications/)</sup>

**AI辅助可观测性。** 从业者调查显示出强烈认可：92%认为AI在异常导致停机之前发现异常并生成仪表板、告警和查询方面有价值，91%认可AI用于预测和辅助根因分析；77%支持AI自主行动，尽管15%尚不信任AI代表其行动，8%认为其没有价值。<sup>[10](https://grafana.com/press/2026/03/18/grafana-labs-4th-annual-observability-survey-reveals-a-field-at-a-crossroads-ai-economics-complexity-and-the-enduring-power-of-open-source/)</sup> New Relic的2026年预测发现，AI在调查阶段交付最高的运营价值，提及率为35.8%，取代了人工根因侦查工作。<sup>[20](https://newrelic.com/sites/default/files/2026-09/new-relic-2026-observability-forecast-report.pdf)</sup> Elastic的调查将首要AI用例列为日志、指标和追踪的自动关联（58%）、根因分析（49%）、修复和自动化运维（48%）、发现未知的未知（47%）以及助手任务（47%）。<sup>[18](https://www.elastic.co/blog/2026-observability-trends-generative-ai-opentelemetry)</sup> 产品体现了这一点：CloudWatch Omni的DevOps Agent关联信号、通过依赖图追踪根因路径，并维护调查历史以供事后审查，其工作基于工程师所见的同一遥测数据。<sup>[19](https://aws.amazon.com/blogs/aws/introducing-amazon-cloudwatch-omni-collaborative-ai-powered-observability-for-your-applications/)</sup>

一项关于AI用于微服务日志分析的82篇原始研究的系统综述发现，研究进展与行业需求之间存在严重脱节，其中65项研究依赖合成或私有数据集，与上述调查认可数据形成对比；此处报告两种立场，不做裁决。<sup>[10](https://grafana.com/press/2026/03/18/grafana-labs-4th-annual-observability-survey-reveals-a-field-at-a-crossroads-ai-economics-complexity-and-the-enduring-power-of-open-source/)</sup><sup> • </sup><sup>[21](https://dl.acm.org/doi/abs/10.1016/j.jss.2026.112786)</sup> 在研究方面，用于SLO（服务级别目标；服务可靠性目标）违规预测和根因定位的追踪驱动系统（SuanMing、PERT-GNN、FastPERT、MicroRCA、Sage）是一个活跃方向，近期工作将主动SLO管理视为对齐追踪、指标和日志信号的多模态问题。<sup>[13](https://www.frontiersin.org/journals/computer-science/articles/10.3389/fcomp.2026.1783945/full)</sup>

**定价与管道。** 在昂贵的索引之前对遥测数据进行过滤、重塑和分层的管道已从专业实践演变为常规预算项目，领先的套件现在捆绑了自己的管道。<sup>[17](https://www.ciopages.com/buyer-guides/observability-apm-platform)</sup> New Relic的报告还认为，OpenTelemetry提供了通用框架，用于关联由Copilot、Cursor、Codex和[Claude Code](https://www.edgepedia.org/zh/claude-code)构建的AI生成代码库中的指标、事件、日志和追踪——这些代码库的遥测数据否则会碎片化为不兼容的格式——并且开源兼容性已成为决定性的购买标准。<sup>[20](https://newrelic.com/sites/default/files/2026-09/new-relic-2026-observability-forecast-report.pdf)</sup>

## 实践与采用

**采样。** 由于完整追踪捕获成本高昂，APM平台会进行采样。头部采样在请求的最开始做出决定，此时延迟、错误或下游行为尚不可知；它轻量且可预测，但会过早永久丢弃上下文。尾部采样在收集器中缓冲span，等待做出采样决定，从而支持基于错误和延迟的决策，但收集器必须在内存中持有span，这在流量高峰时可能造成背压或数据丢失。后端级采样可在遥测数据离开客户环境后进行，可能由厂商控制且不透明。<sup>[22](https://cubeapm.com/blog/head-based-vs-tail-based-sampling/)</sup> 一个精心调优的尾部采样策略栈，保留100%的错误和慢追踪并以个位数百分比为基线，可将追踪存储量相比全部保留减少80%至95%；生产模式是三层OpenTelemetry Collector架构，包含节点代理、基于trace_id哈希的无状态路由层和有状态尾部采样层。<sup>[23](https://brainfuel.space/posts/2026-09-15-opentelemetry-collector-scale-tail-sampling/)</sup> 采样也有科学代价：头部或尾部采样可能丢弃中间span并破坏父子关系，上下文传播缺陷可能破坏追踪连续性，因此追踪驱动的分析应报告采样率并评估对不完整调用图的稳健性。<sup>[13](https://www.frontiersin.org/journals/computer-science/articles/10.3389/fcomp.2026.1783945/full)</sup>

**数据分层。** 成熟实践按分辨率对可观测性数据分层：24至48小时的高分辨率数据用于详细故障排查，30至90天的中分辨率数据用于趋势分析，1至2年的低分辨率数据用于容量规划。<sup>[7](https://axis-intelligence.com/best-saas-monitoring-tools-comparison-2025/)</sup>

**平台选择。** 一份2026年买家指南将遥测覆盖和关联权重设为平台评估的22%，成本控制、基数和数据治理占22%，分布式追踪和APM深度占20%，[AIOps](https://www.edgepedia.org/zh/aiops)占16%，OpenTelemetry开放性占12%，规模和可靠性占8%，使成本治理与覆盖范围处于同等地位。<sup>[17](https://www.ciopages.com/buyer-guides/observability-apm-platform)</sup>

## References

1. [Observability and APM Market Analysis 2026, Analysis Atlas](https://analysis-atlas.com/research/observability-apm-market-analysis/)
2. [Observability Market Research Report 2034, Dataintelo](https://dataintelo.com/report/observability-market)
3. [Application Performance Monitoring Global Market Report 2025, GII Research](https://www.giiresearch.com/report/tbrc1426318-application-performance-monitoring-global-market.html)
4. [Application Performance Monitoring Market Size, Share & Growth Forecast to 2035, Emergen Research](https://www.emergenresearch.com/press-release/global-application-performance-monitoring-market)
5. [Overview, OpenTelemetry Specification](https://opentelemetry.io/docs/specs/otel/overview/)
6. [Anomaly Detection and Failure Root Cause Analysis in (Micro) Service-Based Cloud Applications: A Survey, ACM Computing Surveys](https://dl.acm.org/doi/10.1145/3501297)
7. [Best SaaS Monitoring Tools Comparison 2025, Axis Intelligence](https://axis-intelligence.com/best-saas-monitoring-tools-comparison-2025/)
8. [Network-Centric Distributed Tracing with DeepFlow, ACM](https://dl.acm.org/doi/pdf/10.1145/3603269.3604823)
9. [Dynatrace vs Datadog vs New Relic Pricing 2026, Vendor Benchmark](https://vendorbenchmark.com/blog/dynatrace-vs-datadog-vs-new-relic-pricing-benchmark)
10. [Grafana Labs' 4th Annual Observability Survey, Grafana Labs](https://grafana.com/press/2026/03/18/grafana-labs-4th-annual-observability-survey-reveals-a-field-at-a-crossroads-ai-economics-complexity-and-the-enduring-power-of-open-source/)
11. [Best APM Tools 2026: Complete Comparison for Cloud Architects, dev.to](https://dev.to/ciroveldran/best-apm-tools-2026-complete-comparison-for-cloud-architects-31nj)
12. [Datadog vs Dynatrace in 2026, DevHelm](https://devhelm.io/blog/datadog-vs-dynatrace)
13. [From distributed tracing to proactive SLO management, Frontiers in Computer Science](https://www.frontiersin.org/journals/computer-science/articles/10.3389/fcomp.2026.1783945/full)
14. [Trace Context Level 2, W3C Recommendation](https://www.w3.org/TR/trace-context-2/)
15. [The Observability Cost Crisis, Practical Logix](https://www.practicallogix.com/the-observability-cost-crisis-why-84-of-enterprises-are-drowning-in-telemetry-and-how-opentelemetry-is-forcing-a-reckoning/)
16. [What is OpenTelemetry?, OpenTelemetry](https://opentelemetry.io/docs/what-is-opentelemetry/)
17. [Buyer's Guide: Observability & APM Platforms, CIOPages](https://www.ciopages.com/buyer-guides/observability-apm-platform)
18. [Observability trends for 2026 (Part 2), Elastic](https://www.elastic.co/blog/2026-observability-trends-generative-ai-opentelemetry)
19. [Introducing Amazon CloudWatch Omni, AWS Blog](https://aws.amazon.com/blogs/aws/introducing-amazon-cloudwatch-omni-collaborative-ai-powered-observability-for-your-applications/)
20. [New Relic 2026 Observability Forecast Report](https://newrelic.com/sites/default/files/2026-09/new-relic-2026-observability-forecast-report.pdf)
21. [Systematic review of AI for microservice log analysis, Journal of Systems and Software](https://dl.acm.org/doi/abs/10.1016/j.jss.2026.112786)
22. [Head-Based vs Tail-Based Sampling, CubeAPM](https://cubeapm.com/blog/head-based-vs-tail-based-sampling/)
23. [OpenTelemetry at Scale: Collector Gateways, Tail-Based Sampling, Brainfuel](https://brainfuel.space/posts/2026-09-15-opentelemetry-collector-scale-tail-sampling/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Application software by domain › Web browsers, clients, and user agents

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/application-performance-management

English original: https://www.edgepedia.org/application-performance-management
