NVIDIA DeepStream SDK API Reference

9.2 Release
includes/opentelemetry/sdk/trace/samplers/parent_factory.h
Go to the documentation of this file.
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include <memory>
7 
8 #include "opentelemetry/sdk/trace/sampler.h"
9 #include "opentelemetry/version.h"
10 
12 namespace sdk
13 {
14 namespace trace
15 {
16 
21 {
22 public:
26  static std::unique_ptr<Sampler> Create(const std::shared_ptr<Sampler> &root_sampler);
27 
31  static std::unique_ptr<Sampler> Create(
32  const std::shared_ptr<Sampler> &root_sampler,
33  const std::shared_ptr<Sampler> &remote_parent_sampled_sampler,
34  const std::shared_ptr<Sampler> &remote_parent_nonsampled_sampler,
35  const std::shared_ptr<Sampler> &local_parent_sampled_sampler,
36  const std::shared_ptr<Sampler> &local_parent_nonsampled_sampler);
37 };
38 
39 } // namespace trace
40 } // namespace sdk
trace
Definition: includes/opentelemetry/context/context_value.h:18
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition: includes/opentelemetry/version.h:21
sdk::trace::ParentBasedSamplerFactory
Factory class for ParentBasedSampler.
Definition: includes/opentelemetry/sdk/trace/samplers/parent_factory.h:20
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition: includes/opentelemetry/version.h:24
sdk
Definition: includes/opentelemetry/sdk/common/atomic_shared_ptr.h:13
sdk::trace::ParentBasedSamplerFactory::Create
static std::unique_ptr< Sampler > Create(const std::shared_ptr< Sampler > &root_sampler)
Create a ParentBasedSampler.