Analytics, Sessions & Recordings

The Analytics tab gives you end-to-end visibility into every streamed and WebGL play session—from initial page load and bundle download through Unity gameplay, frame timing, logs, and deterministic input replay.

Time Controls & Session Pagination

All analytics views share a unified timebar:

  • Presets: Quickly jump to 1H, 6H, 24H, 7D, 30D, 60D, 6M, or Year.
  • Custom Date & Time Intervals: Enter exact start and end dates or timestamps (for example 2026-12-01 09:00 to 2026-12-01 12:00, or relative expressions like 48h to now).
  • Custom Paging Period & Table Pager: Set a custom paging step (such as 1h, 6h, 24h, or 7d) in the timebar. At the bottom of the Session activity table, use the Previous and Next controls to step backward or forward through history by that exact period; the table scrolls smoothly back to the top as each window loads.

Analytics Reports

  • Overview: Time-series charts for concurrent players, launches, and infrastructure utilization.
  • Sessions: Individual session activity across Streaming and WebGL players with start time, duration, first-frame/load time, outcome (Active, Closed, Canceled, Failed to initialize, etc.), and links to each Session Detail page.
  • Performance: Harmonized FPS by resolution tier, server & Unity runtime latency vs network & browser playback latency, and startup phase breakdowns.
  • Errors: Sessions that failed allocation, initialization, or video presentation.
  • Visitors & Devices: Privacy-preserving visitor profiles, platforms, screen sizes, languages, and time zones.
  • Recordings: Index of captured session input traces and session video exports.

Theory: What Is Recorded and How

1. Distributed Session Traces (OpenTelemetry)

Every player launch mints a short-lived, HMAC-signed TelemetryGrant bound to the project and trace ID. The browser player emits OpenTelemetry spans (browser.express, browser.bundle, browser.allocate, browser.first_frame or browser.webgl.load, and browser.play) through /api/telemetry/session. For streamed sessions, the signaling server and Unity runtime attach matching server spans (session.allocate, session.wait_for_host, and unity.frame_timing) using W3C traceparent propagation.

On the Session Detail page, the Phases waterfall aligns these spans on one microsecond timeline ending in the Playing phase.

2. Frame Timing Histograms

Streamed sessions record frame-interval distributions at two measurement points:

  • Server render loop: Unity's actual frame intervals on the streaming host, along with input-to-frame latency, capture & encode latency, main thread max, and GPU max.
  • Browser presentation: The video frames presented to the viewer via requestVideoFrameCallback, alongside WebRTC bitrate, RTT, packet loss, PLI/NACK counts, and mid-stream hitch anomalies.

Both histograms share a normalized scale with a highlighted frame-budget reference line (for example, 16.7 ms at 60 fps) so you can immediately distinguish server-side stalls from network or client decode delays.

3. Unified Unity Logs (Streaming & WebGL)

Unity logs from both streamed runtime pods and WebGL browser sessions are stored in Loki and displayed in the same Unity logs viewer on every Session Detail page:

  • Streamed sessions: Runtime pod stdout/Unity logs are collected by Alloy and queried by {namespace="<workspace>-runtime", pod="<pod>", container="unity"}.
  • WebGL sessions: The WebGL player hooks Unity's print, printErr, and showBanner callbacks, batches log lines asynchronously so rendering is never blocked, and ships them to /api/telemetry/logs (stored in Loki with low-cardinality stream labels and session_id structured metadata).

4. Input Stream Recordings & Playing Phase Heatmap

To capture player inputs for debugging and deterministic replay:

  1. Open Settings → Runtime (settings/runtime#recording-settings-title).
  2. Enable Trace inputs (and optionally Export session video if entitled) and configure Max duration (1–1800s) and Max size (1–1024 MiB).

How input recording works:

  • Streamed builds: The AppMana Unity plugin (NativeInputRecording) attaches a bounded Unity InputEventTrace to each player's input devices, rotates 000000.inputtrace (Unity InputEventTrace v1 binary) and 000000.frames.json chunks every 10 seconds or 512 KiB, and uploads them with a SHA-256 verified manifest.json to private S3 storage (appmana-session-recordings, retained for 7 days).
  • WebGL builds: The WebGL input recorder (WebGLInputRecorder + .jslib bridge in com.appmana.unity.public) captures the exact same InputEventTrace v1 binary format on the main thread and uploads completed segments asynchronously via /api/telemetry/recordings.

Playing phase input heatmap: When an input trace is published (or during periodic recording maintenance), AppMana's heatmap ETL parses the .inputtrace binary stream into compact time buckets across the session duration. Pointer clicks, keyboard presses, touch presses, and gamepad inputs carry weight 1.0, while continuous pointer moves carry weight 1/20 (0.05). The Playing bar in the Session Detail waterfall renders this heat distribution as a dense dotted activity bar. When input tracing is not enabled, the Playing bar renders as a solid blue bar with an info hint.

5. Downloading Recordings & "Trace for Agent"

When a session has recordings, the Recordings panel on its Session Detail page provides:

  • Download video: Downloads the recorded capture.mp4 (retained for 30 days).
  • Download trace: Downloads a verified ZIP archive containing manifest.json, all .inputtrace and .frames.json chunks, and AppManaInputTraceReplay.cs.
  • Trace for Agent: Opens a plain-text .txt instruction sheet (/api/recordings/<id>/agent.txt) containing the recording's exact Unity version, Input System version, download command, and step-by-step Unity Editor / PlayMode replay instructions so an AI coding agent can reproduce the player's exact session automatically.