Crates.io | mongo-tracing |
lib.rs | mongo-tracing |
version | 0.1.2 |
source | src |
created_at | 2023-08-16 18:11:23.258593 |
updated_at | 2023-08-16 19:46:56.847336 |
description | Mongodb connection wrapper with telemetry support |
homepage | |
repository | https://github.com/soulseekeer24/mongo-tracing |
max_upload_size | |
id | 946244 |
size | 26,046 |
This library wrap the Rust MongoDB Driver's Collection object with Telemetry
// Instead of getting collection from database
database
.collection::<Document>("medicalRecordsHistories")
// import the Trait
use mongo_tracing::InstrumentedCollectionExt;
....
//And replace the "collection" method for "collection_instrumented
database
.collection_instrumented::<Document>("medicalRecordsHistories")