Skip to content

Commit 738f95f

Browse files
committed
cleanup
1 parent 9ea4223 commit 738f95f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

exporters/otlp/src/otlp_file_log_record_exporter_factory.cc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "opentelemetry/exporters/otlp/otlp_file_log_record_exporter_factory.h"
55
#include "opentelemetry/exporters/otlp/otlp_file_log_record_exporter.h"
66
#include "opentelemetry/exporters/otlp/otlp_file_log_record_exporter_options.h"
7-
#include "opentelemetry/exporters/otlp/otlp_file_log_record_exporter_runtime_options.h"
87

98
OPENTELEMETRY_BEGIN_NAMESPACE
109
namespace exporter
@@ -21,18 +20,9 @@ OtlpFileLogRecordExporterFactory::Create()
2120

2221
std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter>
2322
OtlpFileLogRecordExporterFactory::Create(const OtlpFileLogRecordExporterOptions &options)
24-
{
25-
OtlpFileLogRecordExporterRuntimeOptions runtime_options;
26-
return Create(options, runtime_options);
27-
}
28-
29-
std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter>
30-
OtlpFileLogRecordExporterFactory::Create(
31-
const OtlpFileLogRecordExporterOptions &options,
32-
const OtlpFileLogRecordExporterRuntimeOptions &runtime_options)
3323
{
3424
std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter> exporter(
35-
new OtlpFileLogRecordExporter(options, runtime_options));
25+
new OtlpFileLogRecordExporter(options));
3626
return exporter;
3727
}
3828

exporters/otlp/src/otlp_http_log_record_exporter_factory.cc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "opentelemetry/exporters/otlp/otlp_http_log_record_exporter_factory.h"
55
#include "opentelemetry/exporters/otlp/otlp_http_log_record_exporter.h"
66
#include "opentelemetry/exporters/otlp/otlp_http_log_record_exporter_options.h"
7+
#include "opentelemetry/exporters/otlp/otlp_http_log_record_exporter_runtime_options.h"
78

89
OPENTELEMETRY_BEGIN_NAMESPACE
910
namespace exporter
@@ -20,9 +21,18 @@ OtlpHttpLogRecordExporterFactory::Create()
2021

2122
std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter>
2223
OtlpHttpLogRecordExporterFactory::Create(const OtlpHttpLogRecordExporterOptions &options)
24+
{
25+
OtlpHttpLogRecordExporterRuntimeOptions runtime_options;
26+
return Create(options, runtime_options);
27+
}
28+
29+
std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter>
30+
OtlpHttpLogRecordExporterFactory::Create(
31+
const OtlpHttpLogRecordExporterOptions &options,
32+
const OtlpHttpLogRecordExporterRuntimeOptions &runtime_options)
2333
{
2434
std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter> exporter(
25-
new OtlpHttpLogRecordExporter(options));
35+
new OtlpHttpLogRecordExporter(options, runtime_options));
2636
return exporter;
2737
}
2838

0 commit comments

Comments
 (0)