| Crates.io | influxive-core |
| lib.rs | influxive-core |
| version | 0.0.5 |
| created_at | 2023-07-20 21:35:48.087034+00 |
| updated_at | 2025-08-12 12:48:43.222967+00 |
| description | Core types for influxive crates |
| homepage | |
| repository | https://github.com/holochain/influxive |
| max_upload_size | |
| id | 921783 |
| size | 7,835 |
Core types for influxive crates. The main point of this crate is to expose the [MetricWriter] trait to be used by downstream influxive crates.
let _metric = influxive_core::Metric::new(std::time::SystemTime::now(), "my.name")
.with_field("field.bool", true)
.with_field("field.float", 3.14)
.with_field("field.signed", -42)
.with_field("field.unsigned", 42)
.with_field("field.string", "string.value")
.with_tag("tag.bool", true)
.with_tag("tag.float", 3.14)
.with_tag("tag.signed", -42)
.with_tag("tag.unsigned", 42)
.with_tag("tag.string", "string.value");