Skip to content

Commit 1554ec9

Browse files
committed
build cleanup
1 parent c9f9628 commit 1554ec9

File tree

4 files changed

+8
-44
lines changed

4 files changed

+8
-44
lines changed

exporters/otlp/src/otlp_builder_utils.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"
4+
#include <map>
5+
#include <utility>
6+
57
#include "opentelemetry/common/kv_properties.h"
8+
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"
9+
#include "opentelemetry/nostd/string_view.h"
610
#include "opentelemetry/sdk/common/global_log_handler.h"
711
#include "opentelemetry/version.h"
812

exporters/otlp/src/otlp_http_log_record_exporter_options.cc

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,11 @@ OtlpHttpLogRecordExporterOptions::OtlpHttpLogRecordExporterOptions(void *)
4949
json_bytes_mapping(JsonBytesMappingKind::kHexId),
5050
use_json_name(false),
5151
console_debug(false),
52-
timeout(),
53-
http_headers(),
5452
#ifdef ENABLE_ASYNC_EXPORT
5553
max_concurrent_requests{64},
5654
max_requests_per_connection{8},
5755
#endif
58-
ssl_insecure_skip_verify(false),
59-
ssl_ca_cert_path(),
60-
ssl_ca_cert_string(),
61-
ssl_client_key_path(),
62-
ssl_client_key_string(),
63-
ssl_client_cert_path(),
64-
ssl_client_cert_string(),
65-
ssl_min_tls(),
66-
ssl_max_tls(),
67-
ssl_cipher(),
68-
ssl_cipher_suite(),
69-
compression(),
70-
retry_policy_max_attempts(),
71-
retry_policy_initial_backoff(),
72-
retry_policy_max_backoff(),
73-
retry_policy_backoff_multiplier()
56+
ssl_insecure_skip_verify(false)
7457
{}
7558

7659
OtlpHttpLogRecordExporterOptions::~OtlpHttpLogRecordExporterOptions() {}

exporters/otlp/src/otlp_http_metric_exporter_options.cc

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,29 +51,12 @@ OtlpHttpMetricExporterOptions::OtlpHttpMetricExporterOptions(void *)
5151
json_bytes_mapping(JsonBytesMappingKind::kHexId),
5252
use_json_name(false),
5353
console_debug(false),
54-
timeout(),
55-
http_headers(),
5654
aggregation_temporality(PreferredAggregationTemporality::kCumulative),
5755
#ifdef ENABLE_ASYNC_EXPORT
5856
max_concurrent_requests{64},
5957
max_requests_per_connection{8},
6058
#endif
61-
ssl_insecure_skip_verify(false),
62-
ssl_ca_cert_path(),
63-
ssl_ca_cert_string(),
64-
ssl_client_key_path(),
65-
ssl_client_key_string(),
66-
ssl_client_cert_path(),
67-
ssl_client_cert_string(),
68-
ssl_min_tls(),
69-
ssl_max_tls(),
70-
ssl_cipher(),
71-
ssl_cipher_suite(),
72-
compression(),
73-
retry_policy_max_attempts(),
74-
retry_policy_initial_backoff(),
75-
retry_policy_max_backoff(),
76-
retry_policy_backoff_multiplier()
59+
ssl_insecure_skip_verify(false)
7760
{}
7861

7962
OtlpHttpMetricExporterOptions::~OtlpHttpMetricExporterOptions() {}

exporters/prometheus/src/exporter_options.cc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,7 @@ PrometheusExporterOptions::PrometheusExporterOptions()
7777
without_type_suffix(GetPrometheusWithoutTypeSuffix())
7878
{}
7979

80-
PrometheusExporterOptions::PrometheusExporterOptions(void *)
81-
: url(""),
82-
populate_target_info(true),
83-
without_otel_scope(false),
84-
without_units(false),
85-
without_type_suffix(false)
86-
{}
80+
PrometheusExporterOptions::PrometheusExporterOptions(void *) : url("") {}
8781

8882
} // namespace metrics
8983
} // namespace exporter

0 commit comments

Comments
 (0)