File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 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
98OPENTELEMETRY_BEGIN_NAMESPACE
109namespace exporter
@@ -21,18 +20,9 @@ OtlpFileLogRecordExporterFactory::Create()
2120
2221std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter>
2322OtlpFileLogRecordExporterFactory::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
Original file line number Diff line number Diff line change 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
89OPENTELEMETRY_BEGIN_NAMESPACE
910namespace exporter
@@ -20,9 +21,18 @@ OtlpHttpLogRecordExporterFactory::Create()
2021
2122std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter>
2223OtlpHttpLogRecordExporterFactory::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
You can’t perform that action at this time.
0 commit comments