Crates.io | segfaultai |
lib.rs | segfaultai |
version | 2024.1.23122245-staging |
source | src |
created_at | 2024-01-06 02:24:14.264854 |
updated_at | 2024-01-23 12:23:26.21679 |
description | Segfault.ai Tracing SDK |
homepage | |
repository | |
max_upload_size | |
id | 1090693 |
size | 8,922 |
This is the Segfault.ai SDK for Rust.
Add this to your Cargo.toml
:
[dependencies]
segfaultai = "*"
fn main() {
// Initialize the sdk
segfaultai::init();
// Create your gstreamer pipeline
let pipeline = gstreamer::Pipeline::new("my-pipeline");
// Start tracing the pipeline with some metadata
segfaultai::trace_start(&pipeline, &[("key", "value")]);
// Do stuff...
// Stop tracing the pipeline
segfaultai::trace_stop(&pipeline);
// Gracefully shutdown the sdk
segfaultai::shutdown();
}