mongo-tracing

Crates.iomongo-tracing
lib.rsmongo-tracing
version0.1.2
sourcesrc
created_at2023-08-16 18:11:23.258593
updated_at2023-08-16 19:46:56.847336
descriptionMongodb connection wrapper with telemetry support
homepage
repositoryhttps://github.com/soulseekeer24/mongo-tracing
max_upload_size
id946244
size26,046
Manuel Martinez (soulseekeer24)

documentation

README

MONGO TRACING

This library wrap the Rust MongoDB Driver's Collection object with Telemetry

Usage

// 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")
   

Commit count: 10

cargo fmt