Skip to content

Commit

Permalink
use default protocol for HttpConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ramgdev committed Feb 28, 2024
1 parent ed4fc03 commit 587c341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opentelemetry-otlp/src/exporter/http/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{
ExportConfig, Protocol, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS,
ExportConfig, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS,
OTEL_EXPORTER_OTLP_TIMEOUT,
};
use http::{HeaderName, HeaderValue, Uri};
Expand All @@ -10,7 +10,7 @@ use std::str::FromStr;
use std::sync::{Arc, Mutex};
use std::time::Duration;

use super::{default_headers, parse_header_string};
use super::{default_headers, default_protocol, parse_header_string};

#[cfg(feature = "metrics")]
mod metrics;
Expand Down Expand Up @@ -98,7 +98,7 @@ impl Default for HttpExporterBuilder {
fn default() -> Self {
HttpExporterBuilder {
exporter_config: ExportConfig {
protocol: Protocol::HttpBinary,
protocol: default_protocol(),
..ExportConfig::default()
},
http_config: HttpConfig {
Expand Down

0 comments on commit 587c341

Please sign in to comment.