Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
use sval for encoding metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Mar 12, 2024
1 parent 65de23e commit febfaa2
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 229 deletions.
4 changes: 2 additions & 2 deletions targets/otlp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = "0.0.0"
edition = "2021"

[features]
default = ["http", "grpc"]
default = ["http"]
http = ["dep:hyper", "dep:hyper-util"]
grpc = ["dep:prost", "dep:serde", "emit/serde"]
grpc = ["dep:prost", "dep:prost-types", "dep:serde", "emit/serde"]
decode_responses = ["dep:prost", "dep:prost-types"]

[dependencies.emit]
Expand Down
10 changes: 0 additions & 10 deletions targets/otlp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,6 @@ impl OtlpMetricsBuilder {
self.encoder.name = Box::new(writer);
self
}

pub fn reaggregate_multi_point_sums(mut self, reaggregate: bool) -> Self {
self.encoder.sum.single_point_per_sample = reaggregate;
self
}

pub fn reaggregate_multi_value_counts(mut self, reaggregate: bool) -> Self {
self.encoder.count.single_point_per_sample = reaggregate;
self
}
}

enum Encoding {
Expand Down
1 change: 1 addition & 0 deletions targets/otlp/src/data/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pub(crate) mod response {
}
}

#[cfg(feature = "grpc")]
pub(crate) mod any_value {
use std::fmt;

Expand Down
Loading

0 comments on commit febfaa2

Please sign in to comment.