Rust Tracker
The Snowplow Rust Tracker allows you to add analytics to your Rust apps.
The tracker is published on crates.io as snowplow_tracker.
If you are upgrading from 0.1.0 to 0.2.0, there are a couple of changes required to make to your code:
Tracker.track
is no longer an async function- The Emitter must be safely closed to allow the tracker to drop, as it spawns a thread to send events. This can be done by calling
Tracker.close_emitter()
.
📄️ Getting started
The following steps will guide you through setting up the Rust tracker in your project and tracking a simple event.
📄️ Initialization and configuration
The Snowplow module provides a single method to initialize and configure a new tracker, the Snowplow::create_tracker method. It accepts configuration parameters for the tracker and returns a Tracker instance.
📄️ Tracking events
Designing how and what to track in your app is an important decision. Check out our docs about tracking design here.
📄️ Adding data to your events: context and more
There are multiple ways to add extra data to your tracked events, adding richness and value to your dataset: