モバイルおよび Web アプリケーションを Splunk RUM でインストルメンテーションする 🔗
モバイルおよび Web アプリケーションをインストルメンテーションして、Splunk Real User Monitoring (RUM) にデータを送信します。Splunk RUM は、モバイルおよび Web アプリケーションのユーザー行動を可視化します。Splunk RUM の詳細については、Splunk RUM の概要 を参照してください。
Splunk RUMインストルメンテーションは、WebおよびモバイルアプリケーションからのトレースをSplunk Observability Cloudに送信します。
以下のようなアプリケーションを使用することができます:
Install the splunk-rum CLI 🔗
The splunk-rum
CLI is a tool for enabling automatic source mapping of your browser, iOS, and Android applications at instrumentation time. Although you can upload source mapping information 「on demand」 manually through the UI, the best practice is to integrate the use of this CLI into the CI pipeline of your application. By integrating splunk-rum
commands into your CI pipeline, you automate the steps you need to take to enable Splunk RUM to convert stack traces from your browser and mobile applications into human-readable form, and you ensure that this source mapping information always matches your production binaries.
前提条件 🔗
Install Node v18+ on your build machine.
Get an organization access token with an authorization scope of
API token
(notRUM token
) and with thepower
role. You will save this token in an environment variable namedSPLUNK_ACCESS_TOKEN
.
インストール 🔗
Download
splunk-rum
from the splunk-rum-cli repo. This CLI is published to npm as package name@splunk/rum-cli
.Install
splunk-rum
in your Linux-based build environment either as:A dependency of your build process, and add
splunk-rum
to yourPATH
:npm install @splunk/rum-cli --global
A dependency to your existing
package.json
file. Note: This option is for browser applications only, not mobile applications:npm install @splunk/rum-cli --save-dev
Set these environment variables:
export SPLUNK_ACCESS_TOKEN=<your-splunk-observability-token> export SPLUNK_REALM=<your-splunk-observability-realm>
次のステップ 🔗
To use splunk-rum
to upload your application’s mapping files to Splunk RUM, follow the steps corresponding to your application’s platform:
For browser applications, see Set up JavaScript source mapping.
For iOS applications, see Add dSYMs.
For Android applications, see Add a mapping file.