14 releases

0.0.3-alpha.1 Jun 5, 2024
0.0.2-alpha.1 Oct 16, 2023
0.0.1-alpha.11 Aug 4, 2023
0.0.1-alpha.9 Jul 31, 2023

#600 in Development tools

Download history 625/week @ 2024-07-25 610/week @ 2024-08-01 394/week @ 2024-08-08 342/week @ 2024-08-15 393/week @ 2024-08-22 577/week @ 2024-08-29 593/week @ 2024-09-05 625/week @ 2024-09-12 755/week @ 2024-09-19 480/week @ 2024-09-26 486/week @ 2024-10-03 383/week @ 2024-10-10 400/week @ 2024-10-17 575/week @ 2024-10-24 577/week @ 2024-10-31 549/week @ 2024-11-07

2,220 downloads per month
Used in 4 crates (via influxive)

MIT/Apache

39KB
866 lines

Project Forum Chat

License: MIT License: Apache-2.0

Opentelemetry metrics bindings for influxive-child-svc.

Example

use influxive_writer::*;

// create an influxive writer
let writer = InfluxiveWriter::with_token_auth(
    InfluxiveWriterConfig::default(),
    "http://127.0.0.1:8086",
    "my.bucket",
    "my.token",
);

// register the meter provider
opentelemetry_api::global::set_meter_provider(
    influxive_otel::InfluxiveMeterProvider::new(
        Default::default(),
        Arc::new(writer),
    )
);

// create a metric
let m = opentelemetry_api::global::meter("my.meter")
    .f64_histogram("my.metric")
    .init();

// make a recording
m.record(3.14, &[]);

Dependencies

~4–12MB
~112K SLoC