Go to the source code of this file.
◆ opentracing_dynamic_load_error_code
Error codes for dynamic loading.
◆ opentracing_dynamic_load_error_code
Error codes for dynamic loading.
Enumerator |
---|
opentracing_dynamic_load_error_code_success | Success value.
|
opentracing_dynamic_load_error_code_failure | Occurs when dynamically loading a tracer library fails.
Possible reasons could be the library doesn't exist or it is missing the required symbols.
|
opentracing_dynamic_load_error_code_not_supported | Means dynamic loading of tracing libraries is not supported for the platform used.
|
opentracing_dynamic_load_error_code_incompatible_library_versions | Occurs if the tracing dynamically loaded library uses an incompatible version of opentracing.
|
◆ opentracing_dynamically_load_tracing_library()
Dynamically loads a tracing library and returns a handle that can be used to create tracers.
- Parameters
-
| lib | Shared library name. |
[out] | handle | Library handle that should be closed once symbol is no longer needed. |
[out] | error_buffer | Buffer for potential error message. |
| error_buffer_length | Length of error_buffer. If error_buffer is NULL, must be zero. |
- Returns
- opentracing_dynamic_load_error_code indicating success or failure.
- See also
- opentracing_library_handle_destroy
◆ opentracing_library_handle_destroy()
Destroy handle to stop using this library.
To avoid undefined behavior, the caller must avoid doing this until all tracers loaded from this library are also destroyed.
- Parameters
-
handle | Library handle to destroy. |