Skip to content

Commit c12c797

Browse files
committed
Code review comments, enum naming
1 parent 59b6678 commit c12c797

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

sdk/include/opentelemetry/sdk/configuration/otlp_file_push_metric_exporter_configuration.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ class OtlpFilePushMetricExporterConfiguration : public PushMetricExporterConfigu
2929
}
3030

3131
std::string output_stream;
32-
enum_temporality_preference temporality_preference{cumulative};
33-
enum_default_histogram_aggregation default_histogram_aggregation{explicit_bucket_histogram};
32+
TemporalityPreference temporality_preference{TemporalityPreference::cumulative};
33+
DefaultHistogramAggregation default_histogram_aggregation{
34+
DefaultHistogramAggregation::explicit_bucket_histogram};
3435
};
3536

3637
} // namespace configuration

sdk/include/opentelemetry/sdk/configuration/otlp_grpc_push_metric_exporter_configuration.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ class OtlpGrpcPushMetricExporterConfiguration : public PushMetricExporterConfigu
3838
std::string compression;
3939
std::size_t timeout{0};
4040
bool insecure{false};
41-
enum_temporality_preference temporality_preference{cumulative};
42-
enum_default_histogram_aggregation default_histogram_aggregation{explicit_bucket_histogram};
41+
TemporalityPreference temporality_preference{TemporalityPreference::cumulative};
42+
DefaultHistogramAggregation default_histogram_aggregation{
43+
DefaultHistogramAggregation::explicit_bucket_histogram};
4344
};
4445

4546
} // namespace configuration

sdk/include/opentelemetry/sdk/configuration/otlp_http_push_metric_exporter_configuration.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ class OtlpHttpPushMetricExporterConfiguration : public PushMetricExporterConfigu
3838
std::string headers_list;
3939
std::string compression;
4040
std::size_t timeout{0};
41-
enum_otlp_http_encoding encoding{protobuf};
42-
enum_temporality_preference temporality_preference{cumulative};
43-
enum_default_histogram_aggregation default_histogram_aggregation{explicit_bucket_histogram};
41+
OtlpHttpEncoding encoding{OtlpHttpEncoding::protobuf};
42+
TemporalityPreference temporality_preference{TemporalityPreference::cumulative};
43+
DefaultHistogramAggregation default_histogram_aggregation{
44+
DefaultHistogramAggregation::explicit_bucket_histogram};
4445
};
4546

4647
} // namespace configuration

sdk/include/opentelemetry/sdk/configuration/temporality_preference.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ namespace sdk
1313
namespace configuration
1414
{
1515

16-
enum enum_temporality_preference : std::uint8_t
16+
// YAML-SCHEMA: schema/meter_provider.json
17+
// YAML-NODE: ExporterTemporalityPreference
18+
enum class TemporalityPreference : std::uint8_t
1719
{
1820
cumulative,
1921
delta,

0 commit comments

Comments
 (0)