作者:来自 Elastic Costas Pipilas, Jesse Miller
Elastic 全天候值守的夜班 人工智能 站点可靠性工程师可以发现事故。人工智能原生应用开发者可以深入查看大语言模型的交互细节,更快定位应用错误,并使用 Vercel、Supabase 和 Temporal 管理开发工作。
使用 Elastic 端到端追踪每个请求。立即体验 应用性能监控(application performance monitoring),查阅 APM 文档(APM docs),或开启 免费云试用(free cloud trial)。
借助 Elastic 可观测性 9.6,开发者可以使用全新的 Elastic 夜班人工智能站点可靠性工程师(Elastic nightshift AI SRE)和 Elastic APM 中更丰富的上下文信息加快调查,使用 大语言模型 追踪分析人工智能原生应用,并监测构建这些应用所用的工具。Elastic 夜班人工智能站点可靠性工程师目前处于私有预览阶段,可以检测和调查事故,并建议修复措施,帮助站点可靠性工程师和开发者了解部署问题。在 APM 中,带上下文的服务地图、从服务地图一路深入到单个跨度的侧滑面板,以及一键启动的人工智能调查,让调查更容易,并在每一步保留上下文。Elastic APM 中的大语言模型追踪目前处于技术预览阶段,可在追踪瀑布图中显示提示词、响应和词元数量。它基于 OpenTelemetry 生成式人工智能约定,无须专有软件开发工具包。新增的 Vercel、Supabase 和 Temporal 集成为人工智能原生应用开发提供了可观测性。通用告警让团队可以用 ES|QL 编写任意告警规则,并将每条告警存储为可搜索的数据。它可以与经典告警并行运行。9.6 还增加了合成监控私有位置的扩缩容功能。
此版本包含以下更新。
- 保留上下文的 Elastic APM 服务调查(Elastic APM service investigations that keep their context)。服务页面提供带上下文的服务地图。你可以从发现(Discover)页面或服务地图出发,通过同一组侧滑面板逐层深入到单个跨度。你还可以从告警或服务地图一键启动人工智能调查。
- Elastic APM 追踪中的大语言模型提示词和词元计数(技术预览)(LLM prompts and token counts in Elastic APM traces (tech preview))。生成式人工智能(GenAI) 选项卡在追踪瀑布图中显示跨度详情和词元数量。该功能基于 OpenTelemetry(OTel)的生成式人工智能约定,无须专有软件开发工具包。
- Elastic 夜班人工智能站点可靠性工程师(私有预览)(Elastic nightshift AI SRE (private preview))。你可以一起运行或单独运行四个引擎,分别是上下文引擎、检测引擎、调查引擎和修复引擎。
- 面向人工智能原生应用开发者的可观测性(Observability for the AI-native developer)。新增的 Vercel、Supabase 和 Temporal 集成(Vercel, Supabase, and Temporal integrations)帮助开发者管理应用开发和部署。
- 通用告警(Universal Alerting)。使用 ES|QL 编写任意告警规则,将每条告警存储为可搜索的数据,并通过可重复使用的操作策略路由通知。通用告警可以与经典告警并行运行,无须迁移。
- 9.6 中的其他更新(Also in 9.6)。Elastic 合成监控私有位置扩缩容(Elastic Synthetics private location scaling)。
Elastic 可观测性 9.6 现已在 Elastic Cloud 上提供。Elastic Cloud 是唯一包含此次发布全部新功能的 Elasticsearch 产品方案。如果你希望自行管理部署,也可以 下载 Elastic 技术栈(download the Elastic Stack),以及我们的云编排产品 Elastic Cloud 企业版(ECE)和 Kubernetes 上的 Elastic Cloud(ECK)。
Elastic 9.6 还有哪些新功能?请参阅 9.6 发布公告(9.6 announcement post)了解更多。
保留上下文的 Elastic APM 服务调查
Elastic 可观测性 9.6 会在调查过程中持续显示服务、追踪和告警的上下文,让你在页面之间切换时也能保留这些信息。
Elastic APM 中带上下文的服务地图
服务概览页和事务页现在都内嵌了一张紧凑的 依赖关系 图,移动服务的相关页面也支持这项功能。地图以当前服务为中心,沿依赖关系逐跳展开。你可以同时突出显示多个服务,并在仪表板与完整服务地图之间切换时保留筛选条件。即使在大型环境中,你也可以直接在当前页面查看依赖关系,无须切换到难以阅读的全量地图。带上下文的服务地图可通过白金许可证使用。
在同一组侧滑面板中从发现页面深入到单个跨度
现在,你可以从发现(Discover)页面的追踪记录或服务 地图 开始整个调查。
- 点击发现页面的追踪记录中的服务名称,或点击服务地图上的服务,打开服务侧滑面板。
- 深入查看某个事务。
- 打开完整的追踪记录。
- 打开单个跨度或错误。
每一步都在同一组侧滑面板中打开。你可以返回上一步,筛选条件和时间范围在整个过程中始终保持同步。
来自 Elastic APM agent 和 Elastic OpenTelemetry 发行版(EDOT)的数据支持完整的下钻流程。对于通过标准收集器发送的 OpenTelemetry(OTel)数据,侧滑面板会显示延迟、吞吐量和错误率,并提供 在发现页面中打开(Open in Discover) 选项。
从告警或服务地图启动人工智能调查
在告警详情页,选择 添加到聊天(Add to chat) 会打开 Elastic Agent Builder,附加该告警并启动调查。在服务地图上,选择 调查服务地图(Investigate map) 会将当前视图发送给 agent,其中包括时间范围、环境、筛选条件和突出显示的服务。
调查结果按严重程度排序,涵盖活跃告警、未达标的服务级别目标(SLO)、异常情况,以及异常的错误率和延迟,并附有指向受影响服务的链接。Elastic APM 的异常规则现在也会在事务数异常偏低时发出告警,从而发现流量下降。这些功能需要企业版许可证和已配置的生成式人工智能连接器。
要详细了解这些功能,请 阅读我们的博客(review our blog)。
Elastic APM 中的大语言模型追踪:提示词、词元计数等(技术预览)
在包含 20 次大语言模型调用的 agent 追踪中,哪个跨度消耗的 词元 最多?是哪条提示词导致的?Elastic 可观测性 9.6 会在追踪视图中直接显示这些信息。在 Elastic APM 和发现(Discover)页面的跨度详情中,生成式人工智能(GenAI) 选项卡会显示系统 提示词 、用户消息和模型响应,每项都配有复制按钮。该选项卡还会显示模型、提供商和词元用量。追踪瀑布图的每一行都会显示对应跨度的输入和输出词元数量,方便你直接找出消耗最高的调用,无须逐个打开跨度。
生成式人工智能选项卡读取标准的 OpenTelemetry(OTel)生成式人工智能属性,因此适用于任何埋点遵循 OTel 生成式人工智能语义约定的提供商。显示对话内容需要使用 OTel GenAI v1.37.0 的跨度属性模型。
详情请参阅 Elastic APM 中的大语言模型追踪:在跨度视图中查看提示词、响应和词元计数。
面向人工智能原生应用开发者的可观测性:Vercel、 Supabase 和 Temporal
开发者在构建和交付人工智能应用时,需要管理这些应用的开发和部署。新增的 Vercel、Supabase 和 Temporal 集成可以帮助开发者完成这项工作。安装这些集成后,无须管理 agent 或收集器。
Elastic 夜班人工智能站点可靠性工程师(私有预览)
Elastic 夜班人工智能站点可靠性工程师内置于 Elastic 可观测性中,可以与你的团队协作。它包含四个引擎,你可以组合使用,也可以单独使用。
- 上下文引擎(Context Engine) 根据遥测数据、代码和操作手册了解你的环境,并记住以往的事故。
- 检测引擎(Detection Engine) 持续评估遥测数据,无须编写告警规则。它会将相关信号归并为一个重要事件。
- 调查引擎(Investigation Engine) 根据日志、指标、追踪和性能剖析数据并行验证多个根因假设,并在每一步显示所用的查询和原始数据。它也会调查你现有工具发出的告警。
- 修复引擎(Remediation Engine) 通过选择现有工作流并填入参数来提出修复建议。你可以在工作流运行前审核,也可以让它自动执行。
Elastic 夜班人工智能站点可靠性工程师目前在 Elastic 可观测性无服务器版中处于私有预览阶段。抢先体验期间,Elastic 现有客户可免费使用。技术预览计划于今年晚些时候推出。
加入 Elastic 夜班人工智能站点可靠性工程师的候补名单,或阅读 认识 Elastic 夜班人工智能站点可靠性工程师,你全天候值守的同事。
通用告警(Universal Alerting)
目前,团队配置告警时,需要从一长串规则类型中选择。每种规则都有自己的参数,而且团队无法直接使用查询语言。最终生成的告警列表没有层次,很难分组或确定优先级,更难分析,也容易造成告警疲劳。
通用告警使用 ES|QL 作为告警规则语言。任何能用查询表达的条件都可以触发告警,包括错误率、与基准值的比较、百分位数、服务级别目标(SLO)的消耗速率以及数据缺失。你可以从常用模式库入手,也可以使用带引导的规则构建器。
- 将告警作为数据(Alerts as data)。每条告警都会写入专用数据流。你可以在发现(Discover)页面搜索、聚合和可视化告警,也可以基于这些告警创建规则。
- 外部告警(External alerts)。导入第三方工具发出的告警,并像处理其他告警一样处理它们。
- 每个问题对应一条告警(One alert per problem)。每个告警事件会跟踪一个问题从首次检测到恢复的全过程。你可以确认、暂缓或停用告警,让响应人员只看到需要处理的告警。
- 操作策略(企业版)(Action policies (Enterprise))。使用可重复使用的策略代替为每条规则单独配置通知。策略可以按严重程度、环境或服务路由通知、将相关告警分组,并限制重复通知的频率。
通用告警可与经典告警并行运行。你可以在统一告警(Combined Alerts)页面集中分流和处理两类告警。两套告警共用维护窗口和连接器,现有规则照常运行。
详情请参阅 告警文档(alerting documentation)。
Elastic 合成监控私有位置扩缩容
私有位置的监控任务现在可以自动扩缩容,无须手动将监控任务分配给各个 agent。
- 任务分配(Distribution)。Elastic 合成监控根据可用资源和各项测试的需求,将分配给某个 Fleet 策略的所有监控任务分散到该策略下的各个 agent。
- 故障转移(Failover)。如果某个 agent 离线,其监控任务会转移到运行正常的 agent。
- 重新均衡(Rebalancing)。当离线的 agent 恢复上线时,系统会逐步重新分配负载,避免监控任务在 agent 之间来回切换。
这些 Elastic 合成监控选项可通过企业版许可证使用。
开始使用 Elastic 可观测性 9.6
上述功能及 9.6 的其他功能现已在无服务器版中提供。预计 9.6 将于 12 月初面向 Elastic Cloud 托管版(ECH)和自管理部署推出。
Elastic Cloud 现有客户可以直接从 Elastic Cloud 控制台(Elastic Cloud console)使用其中的许多功能。如果你还没有使用 Elastic Cloud,可以 开启免费试用(start a free trial)。
本文所述任何特性或功能是否发布以及何时发布,均由 Elastic 自行决定。当前尚未提供的特性或功能可能延期推出,也可能最终不予推出。
我们可能在本文中使用或提及第三方生成式人工智能(GenAI)工具。这些工具由各自的所有者拥有和运营。Elastic 无法控制这些第三方工具,也不对其内容、运行或使用承担任何责任,亦不对你使用此类工具可能造成的任何损失或损害承担责任。使用人工智能工具处理个人信息、敏感信息或机密信息时,请谨慎行事。你提交的任何数据都可能用于人工智能训练或其他用途。你提供的信息能否得到安全保护或保密,无法保证。使用任何生成式人工智能工具之前,你应了解该工具的隐私惯例和使用条款。
Elastic、Elasticsearch 及相关标识是 Elasticsearch N.V. 在美国和其他国家的商标、徽标或注册商标。所有其他公司和产品名称均为各自所有者的商标、徽标或注册商标。
原文:APM enhancements with LLM Tracing and AI SRE | Elastic Observability Labs
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
Authors: Costas Pipilas, Jesse Miller from Elastic
Elastic's around-the-clock Nightshift AI SRE can detect incidents. AI-native app developers can look deeper into LLM interaction details, locate app errors faster, and manage their dev work using Vercel, Supabase, and Temporal.
Trace every request end-to-end with Elastic. Try Application Performance Monitoring, read the APM docs, or start your free cloud trial.
With Elastic Observability 9.6, developers can use the all-new Elastic Nightshift AI SRE and richer contextual information in Elastic APM to accelerate investigations, trace AI-native apps with LLM tracing analysis, and monitor the tools used to build those apps. Elastic Nightshift AI SRE is in private preview and detects and investigates incidents while recommending remediation actions, helping SREs and developers understand deployment issues. In APM, context-preserving service maps, side panels that let you drill all the way from the service map down to an individual span, and one-click AI-powered investigations make investigation easier and retain context at every step. LLM tracing in Elastic APM is in tech preview, showing prompts, responses, and token counts in the trace waterfall. It is based on the OpenTelemetry Generative AI semantic conventions and requires no proprietary SDK. New Vercel, Supabase, and Temporal integrations provide observability for AI-native app development. Universal Alerting lets teams write any alert rules in ES|QL and store each alert as searchable data. It can run alongside Classic Alerting. 9.6 also adds scaling for synthetic monitoring private locations.
This release includes the following updates.
- Elastic APM service investigations that keep their context: The Service page provides a service map with preserved context. You can drill from the Discover page or from a service map layer by layer into an individual span, all with the same set of side panels. You can also kick off an AI investigation in one click from an alert or from the service map.
- LLM prompts and token counts in Elastic APM traces (tech preview): The GenAI tab in the Trace Waterfall shows span details and token counts. This feature is based on OpenTelemetry (OTel) semantic conventions for generative AI and requires no proprietary SDK.
- Elastic Nightshift AI SRE (private preview): You can run four engines together or independently — Context, Detection, Investigation, and Remediation.
- Observability for the AI-native developer: New Vercel, Supabase, and Temporal integrations help developers manage app development and deployment.
- Universal Alerting: Write any alert rule in ES|QL, store each alert as searchable data, and route notifications via reusable action strategies. Universal Alerting can run alongside Classic Alerting with no migration required.
- Also in 9.6: Elastic Synthetics private location scaling.
Elastic Observability 9.6 is now available on Elastic Cloud. Elastic Cloud is the only Elasticsearch product that includes all new features in this release. If you prefer to manage your own deployment, you can also download the Elastic Stack, along with our cloud orchestration products Elastic Cloud Enterprise (ECE) and Elastic Cloud on Kubernetes (ECK).
What else is new in Elastic 9.6? See the 9.6 announcement post for more details.
Elastic APM Service Investigation with Preserved Context
Elastic Observability 9.6 continues to show service, trace, and alert context throughout the investigation process, so you retain this information when switching between pages.
Service Map with Context in Elastic APM
The Services Overview page and Transaction page now embed a compact dependency graph directly. Mobile service pages also support this feature. The map is centered on the current service and expands hop-by-hop along dependency lines. You can highlight multiple services simultaneously and keep filters applied when switching between dashboards and the full-service map view. Even in large environments, you can inspect dependencies directly on the current page without switching to an overwhelming full-size map. Service maps with context require a Platinum license.
Drill Down from Discover Page to Individual Spans Within the Same Side Panel Set
You can now start the entire investigation from traces on the Discover page or from the service map.
- Click a service name in a trace on the Discover page, or click a service on the service map, to open the service side panel.
- Drill down into a specific transaction.
- Open the full trace.
- Open a single span or error.
Each step opens within the same set of side panels. You can navigate back to previous steps, and filters and time range stay synchronized throughout the entire flow.
Data from the Elastic APM agent and Elastic Distribution of OpenTelemetry (EDOT) supports the complete drill-down workflow. For OpenTelemetry (OTel) data sent via standard collectors, the side panel displays latency, throughput, and error rate, and provides an Open in Discover option.
Start AI Investigation From an Alert or Service Map
On the alert detail page, selecting Add to chat opens Elastic Agent Builder with the alert attached, launching an investigation. On the service map, selecting Investigate map sends the current view to the agent, including time range, environment, filters, and highlighted services.
Investigation results are sorted by severity and cover active alerts, underperforming service-level objectives (SLOs), anomalies, and abnormal error rates and latency, with links to affected services. Elastic APM anomaly rules now also alert on unusually low transaction counts, enabling detection of traffic drops. These features require an Enterprise license and a configured generative AI connector.
To learn more about these features, read our blog.
LLM Tracing in Elastic APM: Prompts, Token Counts, etc. (Technical Preview)
In an agent trace containing 20 large language model calls, which span consumed the most tokens? Which prompt caused it? Elastic Observability 9.6 displays this information directly in the trace view. In span details within Elastic APM and the Discover page, the Generative AI tab shows the system prompt, user messages, and model response, each with a copy button. The tab also displays model, provider, and token usage. Each row in the trace waterfall shows input and output token counts for the corresponding span, making it easy to identify the highest-consumption call directly without opening spans one by one.
The Generative AI tab reads standard OpenTelemetry (OTel) generative AI attributes, so it works with any instrumentation that follows the OTel GenAI semantic conventions. Displaying conversation content requires the span attribute model from OTel GenAI v1.37.0.
For details, see LLM Tracing in Elastic APM: View Prompts, Responses, and Token Counts in Span Views.
Observability for AI-Native Application Developers: Vercel, Supabase, and Temporal
Developers building and delivering AI applications need to manage the development and deployment of those applications. New integrations with Vercel, Supabase, and Temporal can help developers get this done. Once these integrations are installed, there is no need to manage agents or collectors.
Elastic Night Shift AI Site Reliability Engineer (Private Preview)
The Elastic Night Shift AI Site Reliability Engineer is built into Elastic Observability and works alongside your team. It comprises four engines that you can use together or individually.
- Context Engine understands your environment by learning from telemetry data, code, and runbooks, and remembers past incidents.
- Detection Engine continuously evaluates telemetry data without requiring alert rules. It consolidates related signals into a single incident.
- Investigation Engine validates multiple root cause hypotheses in parallel using logs, metrics, traces, and profiling data, showing the queries and raw data used at each step. It also investigates alerts generated by your existing tools.
- Remediation Engine suggests fixes by invoking existing workflows and filling in parameters. You can review before the workflow runs, or let it execute automatically.
The Elastic Night Shift AI Site Reliability Engineer is currently in private preview within Elastic Observability Serverless. Existing Elastic customers can access it free of charge during the preview period. A technical preview program will launch later this year.
Join the waitlist for the Elastic Night Shift AI Site Reliability Engineer, or learn more about your around-the-clock colleague.
Universal Alerting
Currently, when teams configure alerts, they must choose from a long list of rule types. Each rule has its own parameters, and teams cannot use query languages directly. The resulting alert list is flat, making it hard to group or prioritize, difficult to analyze, and prone to causing alert fatigue.
Universal Alerting uses ES|QL as its alert rule language. Any condition expressible in a query can trigger an alert, including error rates, comparisons against baselines, percentiles, SLO burn rates, and data absence. You can start from a library of common patterns or use the guided rule builder.
- Alerts as data. Every alert is written to a dedicated data stream. You can search, aggregate, and visualize alerts on the Discover page, and create rules based on those alerts.
- External alerts. Import alerts emitted by third-party tools and handle them like any other alerts.
- One alert per problem. Each alert event tracks a single problem from first detection through resolution. You can acknowledge, suspend, or disable alerts so responders only see alerts that need attention.
- Action policies (Enterprise). Use reusable policies instead of configuring notifications individually for each rule. Policies can route notifications by severity, environment, or service; group related alerts; and limit the frequency of duplicate notifications.
Universal Alerting can run alongside Classic Alerts. You can triage and process both types of alerts from the Combined Alerts page. Both alert systems share maintenance windows and connectors, and existing rules continue to work as usual.
For details, see the Alerting documentation.
Elastic Synthetic Monitoring Private Preview Scale-Out
Private-preview monitoring tasks can now auto-scale without manually assigning them to individual agents.
- Distribution. Elastic Synthetic Monitoring distributes all monitoring tasks assigned to a Fleet policy across the agents under that policy, based on available resources and the demands of each test.
- Failover. If an agent goes offline, its monitoring tasks are transferred to a healthy agent.
- Rebalancing. When an offline agent comes back online, the system gradually readjusts the load to avoid flapping between agents.
These Elastic Synthetic Monitoring options are available with an Enterprise license.
Getting Started with Elastic Observability 9.6
The above features plus other capabilities in 9.6 are now available in Serverless. Elastic Observability 9.6 is expected to launch in early December for Elastic Cloud Hosted (ECH) and self-managed deployments.
Existing Elastic Cloud customers can use many of these features directly from the Elastic Cloud console. If you do not yet use Elastic Cloud, you can start a free trial.
Whether any feature or capability described herein will be published, and when, is at Elastic's sole discretion. Features or capabilities that are not currently available may be delayed in release or may not be released at all.
We may use or refer to third-party generative artificial intelligence (GenAI) tools in this article. These tools are owned and operated by their respective owners. Elastic does not control these third-party tools and assumes no responsibility for their content, operation, or use, nor for any loss or damage that may arise from your use of such tools. When using AI tools to process personal data, sensitive data, or confidential information, please exercise caution. Any data you submit may be used for AI training or other purposes. There is no guarantee that the information you provide will be protected securely or kept confidential. Before using any GenAI tool, you should understand its privacy practices and terms of use.
Elastic, Elasticsearch, and related marks are trademarks, logos, or registered trademarks of Elasticsearch N.V. in the United States and other countries. All other company and product names are trademarks, logos, or registered trademarks of their respective owners.
Original: APM enhancements with LLM Tracing and AI SRE | Elastic Observability Labs
Auto-fetched and translated by AI Atlas. All rights belong to the original author.