opentracing-c
OpenTracing C API
|
The extract() carrier for the opentracing_propagation_format_text_map with it, the caller can decode a propagated span context as entries in a map of strings. More...
#include <opentracing-c/propagation.h>
Data Fields | |
opentracing_destructible | base |
Base class member. More... | |
opentracing_propagation_error_code(* | foreach_key )(struct opentracing_text_map_reader *reader, opentracing_propagation_error_code(*handler)(void *arg, const char *key, const char *value), void *arg) OPENTRACINGC_NONNULL(1 |
Returns text map contents via repeated calls to the handler function. More... | |
![]() | |
void(* | destroy )(struct opentracing_destructible *destructible) OPENTRACINGC_NONNULL_ALL |
Destructor to clean up any resources allocated to the instance. More... | |
The extract() carrier for the opentracing_propagation_format_text_map with it, the caller can decode a propagated span context as entries in a map of strings.
opentracing_destructible opentracing_text_map_reader::base |
Base class member.
opentracing_propagation_error_code(* opentracing_text_map_reader::foreach_key) (struct opentracing_text_map_reader *reader, opentracing_propagation_error_code(*handler)(void *arg, const char *key, const char *value), void *arg) OPENTRACINGC_NONNULL(1 |
Returns text map contents via repeated calls to the handler function.
If any call to handler returns a non-nil error, immediately returns that error. The "foreach" callback pattern reduces unnecessary copying in some cases and also allows implementations to hold locks while the map is read.
reader | Reader instance. |
handler | Function to call for each key:value pair. It should accept a key and a value as arguments and return an error code indicating success or failure. |
arg | User-defined context argument. |