Skip to content

Commit

Permalink
add missing feature flag to opentelemetry_otlp for otel-push-exporter (
Browse files Browse the repository at this point in the history
…#151)

* add missing feature flag to opentelemetry_otlp for otel-http-push-exporter

* update changelog and rustfmt

* pr review
  • Loading branch information
mellowagain authored Nov 7, 2023
1 parent fdb6234 commit 10e9c77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add support for tracing-opentelemetry v0.21 (#147)
- Error messages when using `#[autometrics]` together with `#[async_trait]`
has been improved (#149)
- Fixed missing feature flag for `opentelemetry-otlp` when autometrics feature
`otel-push-exporter` is enabled

## [0.6.0](https://github.com/autometrics-dev/autometrics-rs/releases/tag/v0.5.0) - 2023-08-08

Expand Down
3 changes: 2 additions & 1 deletion autometrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ otel-push-exporter = [
"opentelemetry_sdk",
"opentelemetry_api",
"opentelemetry-otlp",
"opentelemetry-otlp/tls-roots",
"opentelemetry-otlp/metrics",
"opentelemetry-otlp/tls-roots"
]

otel-push-exporter-http = [
Expand Down
3 changes: 1 addition & 2 deletions autometrics/src/otel_push_exporter.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use opentelemetry_api::metrics::MetricsError;
use opentelemetry_otlp::OtlpMetricPipeline;
use opentelemetry_otlp::{ExportConfig, Protocol, WithExportConfig};
use opentelemetry_otlp::{OtlpMetricPipeline, OTEL_EXPORTER_OTLP_TIMEOUT_DEFAULT};
use opentelemetry_sdk::metrics::MeterProvider;
use opentelemetry_sdk::runtime;
use std::ops::Deref;
use std::time::Duration;

Expand Down

0 comments on commit 10e9c77

Please sign in to comment.