FLiveOpsTelemetry
FLiveOpsTelemetry — the analytics events a game records (FAnalytics::RecordEvent and Record here), stamped with time, session, user and the A/B variants in force, appended to a local journal and sent in batches. Nothing is recorded at all unless the player opted in (FAnalytics' switch), and a batch that fails to send stays queued for the next flush instead of being lost.
- Module
- Game
- Header
#include "LiveOps/Telemetry.h"- Namespace
Mowo
Standard events: session_start (build, platform) when started, session_end (seconds) on Stop, experiment_exposure the first time a variant is read.
Not FTelemetry: the Telemetry module's hardware service has that name, and two Mowo::FTelemetry classes mangle Stop() alike — a monolithic link that takes both (MowoCrashReporter on macOS) failed on the duplicate.
Public functions
| Returns | Name | Description |
|---|---|---|
FLiveOpsTelemetry& | Get | |
void | Start | Installs the FAnalytics sink and records session_start. |
void | Stop | |
bool | IsRunning | |
void | Record | |
bool | Flush | Sends what is queued; false when the endpoint refused or was unreachable (the events stay queued). |
const std::string& | GetSessionId | |
uint32_t | GetQueuedCount | |
uint64_t | GetRecordedCount | |
uint64_t | GetSentCount |
Function details
Get
static FLiveOpsTelemetry& Get()Start
void Start(const FTelemetrySettings& settings, bool force = false)Installs the FAnalytics sink and records session_start. force records even without the player's opt-in (tools and tests).
Stop
void Stop()IsRunning
bool IsRunning() constRecord
void Record(const std::string& name, const std::string& jsonPayload = "")Flush
bool Flush()Sends what is queued; false when the endpoint refused or was unreachable (the events stay queued).
GetSessionId
const std::string& GetSessionId() constGetQueuedCount
uint32_t GetQueuedCount() constGetRecordedCount
uint64_t GetRecordedCount() constGetSentCount
uint64_t GetSentCount() const