今日を知り、明日を変えるシステム運用メディア

CloudWatch RumはJavaScriptソースマップをサポートし、エラーデバッグを容易にします

CloudWatch RumはJavaScriptソースマップをサポートし、エラーデバッグを容易にします

本記事は、2025 年 3 月 18 日にAWS公式サイトの What’s New with AWS? に掲載された英語記事を自動翻訳したものです。

ニュース内容

開発者が実際のユーザーインタラクションを監視し、Webアプリケーションでのフロントエンドのパフォーマンスの問題を診断するのに役立つAmazon CloudWatch Rumは、JavaScriptソースマップをサポートし、開発者がStack Traceのミニ型JavaScriptエラーを読み取り可能な形式に変換できるようになりました。この機能により、フロントエンド開発者とDevOpsチームは、検索可能で人間が読み取るJSエラーを表示し、元のソースコードのエラーの正確な位置をすばやく識別できるようになりました。

JavaScriptエラーは、スタックトレースで模倣されている場合にデバッグするのが難しい場合があり、問題のソースを特定するのが難しくなります。これで、生産環境でエラーが発生した場合、RUMは顧客アップロードされたソースマップを活用して、元のコードに戻します。 ROMイベントで未成年のスタックトレースを検索する追加の機能により、開発者は複数のセッションでトレンドを分析し、問題を相関させ、繰り返しのエラーのより速い検出と優先順位付けを可能にします。 JavaScript Stack Tracesのエラーを解除するには、顧客はアプリモニター構成でそれを有効にし、コンソールまたはROM APIを介してソースマップを保持するバケットまたはフォルダーのS3 URIを提供する必要があります。

これらの拡張機能は、CloudWatch Rumが利用できるすべての地域で利用できます。 Amazon S3へのソースマップのストレージの顧客支払いコスト、およびAWS公開価格に従ってソースマップをアップロードおよび取得するためのAPI呼び出しがここにあります。

この機能について詳しく知るためのドキュメントを参照するか、ユーザーガイドを参照して、CloudWatch Rumを始める方法を学びます。

原文

Amazon CloudWatch RUM, which helps developers monitor real user interactions and diagnose front-end performance issues in web applications, now supports JavaScript source maps, enabling developers to convert minified JavaScript errors in the stack trace into readable formats for faster error resolution. With this feature, front-end developers and DevOps teams can now view searchable, human-readable JS errors and quickly identify the exact location of errors in their original source code.

JavaScript errors can be difficult to debug when they are minified in the stack trace, making it hard to pinpoint the source of an issue. Now, if an error occurs in a production environment, RUM leverages customer uploaded source maps to trace it back to the original code. The added ability to search unminified stack traces in RUM events helps developers analyze trends and correlate issues across multiple sessions, enabling faster detection and prioritization of recurring errors. To unminify errors in JavaScript stack traces, customers need to enable it in the App Monitor configuration and provide the S3 URI of the bucket or folder that holds the source maps via the console or RUM APIs.

These enhancements are available in all regions where CloudWatch RUM is available. Customer pay cost of storage of their source maps to Amazon S3 and for the API calls to upload and retrieve source maps as per AWS public pricing found here.

See documentation to know more about the feature, or see user guide to learn how to get started with CloudWatch RUM.

引用元:CloudWatch RUM now supports JavaScript source maps for easier error debugging

人気の記事

最新情報をお届けします!

最新のITトレンドやセキュリティ対策の情報を、メルマガでいち早く受け取りませんか?ぜひご登録ください

メルマガ登録