Program Listing for File batch_span_processor_factory.h

Return to documentation for file (/tmp/B.puc0r6hi/BUILD/opentelemetry-cpp-1.27.0-build/opentelemetry-cpp-1.27.0/sdk/include/opentelemetry/sdk/trace/batch_span_processor_factory.h)

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

#pragma once

#include <memory>

#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
{

class OPENTELEMETRY_EXPORT BatchSpanProcessorFactory
{
public:
  static std::unique_ptr<SpanProcessor> Create(std::unique_ptr<SpanExporter> &&exporter,
                                               const BatchSpanProcessorOptions &options);

  static std::unique_ptr<SpanProcessor> Create(
      std::unique_ptr<SpanExporter> &&exporter,
      const BatchSpanProcessorOptions &options,
      const BatchSpanProcessorRuntimeOptions &runtime_options);
};

}  // namespace trace
}  // namespace sdk
OPENTELEMETRY_END_NAMESPACE