Crate bevy_fleet

Crate bevy_fleet 

Source
Expand description

§bevy_fleet

A Bevy plugin that asynchronously publishes diagnostics, events, panics, machine info, and custom metrics to a configurable cloud endpoint.

This plugin integrates with Bevy’s built-in diagnostic system to collect telemetry data without custom interfaces.

§Features

  • Async (off-game-thread) publishing
  • Integration with Bevy’s diagnostic system
  • Panic capture and reporting
  • Machine/system information
  • Configurable cloud endpoint

§Usage

use bevy::prelude::*;
use bevy::diagnostic::FrameTimeDiagnosticsPlugin;
use bevy_fleet::{FleetPlugin, FleetConfig};

App::new()
    .add_plugins(DefaultPlugins)
    .add_plugins(FrameTimeDiagnosticsPlugin::default())
    .add_plugins(FleetPlugin {
        config: FleetConfig {
            app_id: "my-app".to_string(),
            aggregation_url: "https://fleet.example.com/api/v1/telemetry".to_string(),
            enabled: true,
            publish_interval_secs: 60,
            ..Default::default()
        },
    })
    .run();

Structs§

FleetConfig
Configuration for the Fleet plugin.
FleetDiagnostic
Diagnostic information extracted from Bevy diagnostics
FleetEvent
A tracked event in the application.
FleetEventBuffer
Buffer that retains Fleet events across frames until the publisher collects them.
FleetMetric
Metric data extracted from Bevy diagnostics
FleetPlugin
The Fleet plugin that can be added to a Bevy app
GpuInfo
GPU/Adapter information from WGPU
MachineInfo
Machine/system information
OtlpConfig
Configuration options specific to the OTLP exporter.
PanicInfo
Panic information
SessionInfo
Session information for correlating metrics across a game session
SessionStats
Statistics tracked for the current session

Functions§

forward_serialized_events
Serializes custom Bevy events into FleetEvents so they can be consumed by Fleet.