Skip to content

Commit aaa8dc5

Browse files
committed
add explicitly defined destructors to cc files for otlp options classes
1 parent 7e31660 commit aaa8dc5

18 files changed

+63
-0
lines changed

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_file_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ namespace otlp
2222
struct OPENTELEMETRY_EXPORT OtlpFileExporterOptions : public OtlpFileClientOptions
2323
{
2424
OtlpFileExporterOptions();
25+
OtlpFileExporterOptions(const OtlpFileExporterOptions &) = default;
26+
OtlpFileExporterOptions(OtlpFileExporterOptions &&) = default;
27+
OtlpFileExporterOptions &operator=(const OtlpFileExporterOptions &) = default;
28+
OtlpFileExporterOptions &operator=(OtlpFileExporterOptions &&) = default;
29+
~OtlpFileExporterOptions() override;
2530
};
2631

2732
} // namespace otlp

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_file_log_record_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ namespace otlp
2222
struct OPENTELEMETRY_EXPORT OtlpFileLogRecordExporterOptions : public OtlpFileClientOptions
2323
{
2424
OtlpFileLogRecordExporterOptions();
25+
OtlpFileLogRecordExporterOptions(const OtlpFileLogRecordExporterOptions &) = default;
26+
OtlpFileLogRecordExporterOptions(OtlpFileLogRecordExporterOptions &&) = default;
27+
OtlpFileLogRecordExporterOptions &operator=(const OtlpFileLogRecordExporterOptions &) = default;
28+
OtlpFileLogRecordExporterOptions &operator=(OtlpFileLogRecordExporterOptions &&) = default;
29+
~OtlpFileLogRecordExporterOptions() override;
2530
};
2631

2732
} // namespace otlp

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_file_metric_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ namespace otlp
2323
struct OPENTELEMETRY_EXPORT OtlpFileMetricExporterOptions : public OtlpFileClientOptions
2424
{
2525
OtlpFileMetricExporterOptions();
26+
OtlpFileMetricExporterOptions(const OtlpFileMetricExporterOptions &) = default;
27+
OtlpFileMetricExporterOptions(OtlpFileMetricExporterOptions &&) = default;
28+
OtlpFileMetricExporterOptions &operator=(const OtlpFileMetricExporterOptions &) = default;
29+
OtlpFileMetricExporterOptions &operator=(OtlpFileMetricExporterOptions &&) = default;
30+
~OtlpFileMetricExporterOptions() override;
2631

2732
PreferredAggregationTemporality aggregation_temporality;
2833
};

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ namespace otlp
2424
struct OPENTELEMETRY_EXPORT OtlpGrpcExporterOptions : public OtlpGrpcClientOptions
2525
{
2626
OtlpGrpcExporterOptions();
27+
OtlpGrpcExporterOptions(const OtlpGrpcExporterOptions &) = default;
28+
OtlpGrpcExporterOptions(OtlpGrpcExporterOptions &&) = default;
29+
OtlpGrpcExporterOptions &operator=(const OtlpGrpcExporterOptions &) = default;
30+
OtlpGrpcExporterOptions &operator=(OtlpGrpcExporterOptions &&) = default;
31+
~OtlpGrpcExporterOptions() override;
2732
};
2833

2934
} // namespace otlp

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_log_record_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ namespace otlp
2424
struct OPENTELEMETRY_EXPORT OtlpGrpcLogRecordExporterOptions : public OtlpGrpcClientOptions
2525
{
2626
OtlpGrpcLogRecordExporterOptions();
27+
OtlpGrpcLogRecordExporterOptions(const OtlpGrpcLogRecordExporterOptions &) = default;
28+
OtlpGrpcLogRecordExporterOptions(OtlpGrpcLogRecordExporterOptions &&) = default;
29+
OtlpGrpcLogRecordExporterOptions &operator=(const OtlpGrpcLogRecordExporterOptions &) = default;
30+
OtlpGrpcLogRecordExporterOptions &operator=(OtlpGrpcLogRecordExporterOptions &&) = default;
31+
~OtlpGrpcLogRecordExporterOptions() override;
2732
};
2833

2934
} // namespace otlp

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_metric_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ namespace otlp
2525
struct OPENTELEMETRY_EXPORT OtlpGrpcMetricExporterOptions : public OtlpGrpcClientOptions
2626
{
2727
OtlpGrpcMetricExporterOptions();
28+
OtlpGrpcMetricExporterOptions(const OtlpGrpcMetricExporterOptions &) = default;
29+
OtlpGrpcMetricExporterOptions(OtlpGrpcMetricExporterOptions &&) = default;
30+
OtlpGrpcMetricExporterOptions &operator=(const OtlpGrpcMetricExporterOptions &) = default;
31+
OtlpGrpcMetricExporterOptions &operator=(OtlpGrpcMetricExporterOptions &&) = default;
32+
~OtlpGrpcMetricExporterOptions() override;
2833

2934
/** Preferred Aggregation Temporality. */
3035
PreferredAggregationTemporality aggregation_temporality;

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ namespace otlp
3333
struct OPENTELEMETRY_EXPORT OtlpHttpExporterOptions
3434
{
3535
OtlpHttpExporterOptions();
36+
OtlpHttpExporterOptions(const OtlpHttpExporterOptions &) = default;
37+
OtlpHttpExporterOptions(OtlpHttpExporterOptions &&) = default;
38+
OtlpHttpExporterOptions &operator=(const OtlpHttpExporterOptions &) = default;
39+
OtlpHttpExporterOptions &operator=(OtlpHttpExporterOptions &&) = default;
40+
~OtlpHttpExporterOptions();
3641

3742
/** The endpoint to export to. */
3843
std::string url;

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_log_record_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ namespace otlp
3333
struct OPENTELEMETRY_EXPORT OtlpHttpLogRecordExporterOptions
3434
{
3535
OtlpHttpLogRecordExporterOptions();
36+
OtlpHttpLogRecordExporterOptions(const OtlpHttpLogRecordExporterOptions &) = default;
37+
OtlpHttpLogRecordExporterOptions(OtlpHttpLogRecordExporterOptions &&) = default;
38+
OtlpHttpLogRecordExporterOptions &operator=(const OtlpHttpLogRecordExporterOptions &) = default;
39+
OtlpHttpLogRecordExporterOptions &operator=(OtlpHttpLogRecordExporterOptions &&) = default;
40+
~OtlpHttpLogRecordExporterOptions();
3641

3742
/** The endpoint to export to. */
3843
std::string url;

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_metric_exporter_options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ namespace otlp
3434
struct OPENTELEMETRY_EXPORT OtlpHttpMetricExporterOptions
3535
{
3636
OtlpHttpMetricExporterOptions();
37+
OtlpHttpMetricExporterOptions(const OtlpHttpMetricExporterOptions &) = default;
38+
OtlpHttpMetricExporterOptions(OtlpHttpMetricExporterOptions &&) = default;
39+
OtlpHttpMetricExporterOptions &operator=(const OtlpHttpMetricExporterOptions &) = default;
40+
OtlpHttpMetricExporterOptions &operator=(OtlpHttpMetricExporterOptions &&) = default;
41+
~OtlpHttpMetricExporterOptions();
3742

3843
/** The endpoint to export to. */
3944
std::string url;

exporters/otlp/src/otlp_file_exporter_options.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ OtlpFileExporterOptions::OtlpFileExporterOptions()
2727
backend_options = fs_options;
2828
}
2929

30+
OtlpFileExporterOptions::~OtlpFileExporterOptions() {}
31+
3032
} // namespace otlp
3133
} // namespace exporter
3234
OPENTELEMETRY_END_NAMESPACE

0 commit comments

Comments
 (0)