Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add missing feature flag to opentelemetry_otlp for otel-http-push-exp…
…orter
  • Loading branch information
mellowagain committed Nov 7, 2023
commit cec9c55198be7a2a773f2506a02e178ec46eb173
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::{ExportConfig, Protocol, WithExportConfig};
use opentelemetry_otlp::{OtlpMetricPipeline, OTEL_EXPORTER_OTLP_TIMEOUT_DEFAULT};
use opentelemetry_otlp::OtlpMetricPipeline;
use opentelemetry_sdk::metrics::MeterProvider;
use opentelemetry_sdk::runtime;
use std::ops::Deref;
use std::time::Duration;

Expand Down