Docs » Splunk Observability Cloud でサポートされているインテグレーション » モバイルおよび Web アプリケーションを Splunk RUM でインストルメンテーションする

モバイルおよび Web アプリケーションを Splunk RUM でインストルメンテーションする 🔗

モバイルおよび Web アプリケーションをインストルメンテーションして、Splunk Real User Monitoring (RUM) にデータを送信します。Splunk RUM は、モバイルおよび Web アプリケーションのユーザー行動を可視化します。Splunk RUM の詳細については、Splunk RUM の概要 を参照してください。

Splunk RUMインストルメンテーションは、WebおよびモバイルアプリケーションからのトレースをSplunk Observability Cloudに送信します。

flowchart LR accTitle: Splunk RUM instrumentation diagram accDescr: Splunk RUM instrumentation encompasses web applications, mobile applications, and React Native applications. RUM instrumentation sends traces from these applications to Splunk RUM. Splunk APM and Splunk RUM send server-timing data between each other. subgraph "Splunk RUM Instrumentation" B["Browser-based web applications"] M["Mobile applications (iOS, Android)"] R["React Native applications"] end A["Splunk APM"] A <-. "Server-Timing data" .-> S B -- traces --> S M -- traces --> S R -- traces --> S S["Splunk RUM"]

Available front-end instrumentations

以下のようなアプリケーションを使用することができます:

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 (not RUM token) and with the power role. You will save this token in an environment variable named SPLUNK_ACCESS_TOKEN.

インストール 🔗

  1. Download splunk-rum from the splunk-rum-cli repo. This CLI is published to npm as package name @splunk/rum-cli.

  2. Install splunk-rum in your Linux-based build environment either as:

    • A dependency of your build process, and add splunk-rum to your PATH:

      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
      
  3. 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:

このページは 2025年05月23日 に最終更新されました。