blob: caaafbacb7316df59aa5ffeb6be904490521feb4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#include <memory>
#include <utility>
#include "opentelemetry/sdk/trace/batch_span_processor.h"
#include "opentelemetry/sdk/trace/batch_span_processor_factory.h"
#include "opentelemetry/sdk/trace/batch_span_processor_options.h"
#include "opentelemetry/sdk/trace/batch_span_processor_runtime_options.h"
#include "opentelemetry/sdk/trace/exporter.h"
#include "opentelemetry/sdk/trace/processor.h"
#include "opentelemetry/version.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace sdk
{
namespace trace
{
std::unique_ptr<SpanProcessor> BatchSpanProcessorFactory::Create(
std::unique_ptr<SpanExporter> &&exporter,
const BatchSpanProcessorOptions &options)
{
BatchSpanProcessorRuntimeOptions runtime_options;
return Create(std::move(exporter), options, runtime_options);
}
std::unique_ptr<SpanProcessor> BatchSpanProcessorFactory::Create(
std::unique_ptr<SpanExporter> &&exporter,
const BatchSpanProcessorOptions &options,
const BatchSpanProcessorRuntimeOptions &runtime_options)
{
std::unique_ptr<SpanProcessor> processor(
new BatchSpanProcessor(std::move(exporter), options, runtime_options));
return processor;
}
} // namespace trace
} // namespace sdk
OPENTELEMETRY_END_NAMESPACE
|