NVIDIA DeepStream SDK API Reference

9.2 Release
plugin Namespace Reference

Namespaces

 detail
 

Data Structures

class  DynamicLibraryHandle
 Manage the ownership of a dynamically loaded library. More...
 
class  DynamicLibraryHandleUnix
 
class  DynamicLibraryHandleWindows
 
class  Factory
 Factory creates OpenTelemetry objects from configuration strings. More...
 
struct  LoaderInfo
 LoaderInfo describes the versioning of the loader. More...
 
class  Span
 
class  Tracer
 
class  TracerHandle
 Manage the ownership of a dynamically loaded tracer. More...
 

Typedefs

using OpenTelemetryHook = nostd::unique_ptr< Factory::FactoryImpl >(*)(const LoaderInfo &loader_info, nostd::unique_ptr< char[]> &error_message)
 

Functions

std::unique_ptr< Factory > LoadFactory (const char *plugin, std::string &error_message) noexcept
 Load an OpenTelemetry implementation as a plugin. More...
 

Typedef Documentation

◆ OpenTelemetryHook

using plugin::OpenTelemetryHook = typedef nostd::unique_ptr<Factory::FactoryImpl> (*)(const LoaderInfo &loader_info, nostd::unique_ptr<char[]> &error_message)

Definition at line 49 of file includes/opentelemetry/plugin/hook.h.

Function Documentation

◆ LoadFactory()

std::unique_ptr< Factory > plugin::LoadFactory ( const char *  plugin,
std::string &  error_message 
)
inlinenoexcept

Load an OpenTelemetry implementation as a plugin.

Parameters
pluginthe path to the plugin to load
error_messageon failure this is set to an error message
Returns
a Factory that can be used to create OpenTelemetry objects or nullptr on failure.

Definition at line 31 of file includes/opentelemetry/plugin/detail/dynamic_load_unix.h.

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