NVIDIA DeepStream SDK API Reference

9.2 Release
plugin::Factory Class Referencefinal

Detailed Description

Factory creates OpenTelemetry objects from configuration strings.

Definition at line 19 of file includes/opentelemetry/plugin/factory.h.

Data Structures

class  FactoryImpl
 

Public Member Functions

 Factory (std::shared_ptr< DynamicLibraryHandle > library_handle, std::unique_ptr< FactoryImpl > &&factory_impl) noexcept
 
std::shared_ptr< trace::Tracer > MakeTracer (nostd::string_view tracer_config, std::string &error_message) const noexcept
 Construct a tracer from a configuration string. More...
 
 Factory (std::shared_ptr< DynamicLibraryHandle > library_handle, std::unique_ptr< FactoryImpl > &&factory_impl) noexcept
 
std::shared_ptr< trace::Tracer > MakeTracer (nostd::string_view tracer_config, std::string &error_message) const noexcept
 Construct a tracer from a configuration string. More...
 

Constructor & Destructor Documentation

◆ Factory() [1/2]

plugin::Factory::Factory ( std::shared_ptr< DynamicLibraryHandle >  library_handle,
std::unique_ptr< FactoryImpl > &&  factory_impl 
)
inlinenoexcept

Definition at line 32 of file includes/opentelemetry/plugin/factory.h.

References absl::move().

◆ Factory() [2/2]

plugin::Factory::Factory ( std::shared_ptr< DynamicLibraryHandle >  library_handle,
std::unique_ptr< FactoryImpl > &&  factory_impl 
)
inlinenoexcept

Definition at line 32 of file 9.2/includes/opentelemetry/plugin/factory.h.

References absl::move().

Member Function Documentation

◆ MakeTracer() [1/2]

std::shared_ptr<trace::Tracer> plugin::Factory::MakeTracer ( nostd::string_view  tracer_config,
std::string &  error_message 
) const
inlinenoexcept

Construct a tracer from a configuration string.

Parameters
tracer_configa representation of the tracer's config as a string.
error_messageon failure this will contain an error message.
Returns
a Tracer on success or nullptr on failure.

Definition at line 43 of file includes/opentelemetry/plugin/factory.h.

References plugin::detail::CopyErrorMessage(), nostd::unique_ptr< T >::get(), and absl::move().

◆ MakeTracer() [2/2]

std::shared_ptr<trace::Tracer> plugin::Factory::MakeTracer ( nostd::string_view  tracer_config,
std::string &  error_message 
) const
inlinenoexcept

Construct a tracer from a configuration string.

Parameters
tracer_configa representation of the tracer's config as a string.
error_messageon failure this will contain an error message.
Returns
a Tracer on success or nullptr on failure.

Definition at line 43 of file 9.2/includes/opentelemetry/plugin/factory.h.

References plugin::detail::CopyErrorMessage(), nostd::unique_ptr< T >::get(), and absl::move().


The documentation for this class was generated from the following file: