Skip to content

Commit c9f9628

Browse files
committed
cleanup
1 parent 73473ef commit c9f9628

File tree

9 files changed

+20
-1
lines changed

9 files changed

+20
-1
lines changed

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_builder_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#pragma once
55

6-
#include <memory>
6+
#include <string>
77

88
#include "opentelemetry/exporters/otlp/otlp_environment.h" // For OtlpHeaders
99
#include "opentelemetry/exporters/otlp/otlp_http.h"

exporters/otlp/src/otlp_builder_utils.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ HttpRequestContentType OtlpBuilderUtils::ConvertOtlpHttpEncoding(
2121
{
2222
case opentelemetry::sdk::configuration::OtlpHttpEncoding::protobuf:
2323
result = exporter::otlp::HttpRequestContentType::kBinary;
24+
break;
2425
case opentelemetry::sdk::configuration::OtlpHttpEncoding::json:
2526
result = exporter::otlp::HttpRequestContentType::kJson;
27+
break;
2628
}
2729

2830
return result;
@@ -90,10 +92,13 @@ PreferredAggregationTemporality OtlpBuilderUtils::ConvertTemporalityPreference(
9092
{
9193
case opentelemetry::sdk::configuration::TemporalityPreference::cumulative:
9294
result = exporter::otlp::PreferredAggregationTemporality::kCumulative;
95+
break;
9396
case opentelemetry::sdk::configuration::TemporalityPreference::delta:
9497
result = exporter::otlp::PreferredAggregationTemporality::kDelta;
98+
break;
9599
case opentelemetry::sdk::configuration::TemporalityPreference::low_memory:
96100
result = exporter::otlp::PreferredAggregationTemporality::kLowMemory;
101+
break;
97102
}
98103

99104
return result;

exporters/otlp/src/otlp_grpc_log_record_builder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#include <chrono>
45
#include <memory>
6+
#include <string>
57
#include <utility>
68

79
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"

exporters/otlp/src/otlp_grpc_push_metric_builder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#include <chrono>
45
#include <memory>
6+
#include <string>
57
#include <utility>
68

79
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"

exporters/otlp/src/otlp_grpc_span_builder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#include <chrono>
45
#include <memory>
6+
#include <string>
57
#include <utility>
68

79
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"

exporters/otlp/src/otlp_http_log_record_builder.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#include <chrono>
45
#include <memory>
6+
#include <string>
57
#include <utility>
68

79
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"
10+
#include "opentelemetry/exporters/otlp/otlp_http.h"
811
#include "opentelemetry/exporters/otlp/otlp_http_log_record_builder.h"
912
#include "opentelemetry/exporters/otlp/otlp_http_log_record_exporter_factory.h"
1013
#include "opentelemetry/exporters/otlp/otlp_http_log_record_exporter_options.h"

exporters/otlp/src/otlp_http_push_metric_builder.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
#include <chrono>
45
#include <memory>
6+
#include <string>
57
#include <utility>
68

79
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"
10+
#include "opentelemetry/exporters/otlp/otlp_http.h"
811
#include "opentelemetry/exporters/otlp/otlp_http_metric_exporter_factory.h"
912
#include "opentelemetry/exporters/otlp/otlp_http_metric_exporter_options.h"
1013
#include "opentelemetry/exporters/otlp/otlp_http_push_metric_builder.h"

exporters/otlp/src/otlp_http_span_builder.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <utility>
88

99
#include "opentelemetry/exporters/otlp/otlp_builder_utils.h"
10+
#include "opentelemetry/exporters/otlp/otlp_http.h"
1011
#include "opentelemetry/exporters/otlp/otlp_http_exporter_factory.h"
1112
#include "opentelemetry/exporters/otlp/otlp_http_exporter_options.h"
1213
#include "opentelemetry/exporters/otlp/otlp_http_span_builder.h"

exporters/prometheus/src/prometheus_pull_builder.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include <memory>
5+
#include <string>
56
#include <utility>
67

78
#include "opentelemetry/exporters/prometheus/exporter_factory.h"

0 commit comments

Comments
 (0)