opentracing-c
OpenTracing C API
Data Fields
opentracing_custom_carrier_writer Struct Reference

inject() carrier for a custom format. More...

#include <opentracing-c/propagation.h>

Inheritance diagram for opentracing_custom_carrier_writer:
[legend]
Collaboration diagram for opentracing_custom_carrier_writer:
[legend]

Data Fields

opentracing_destructible base
 Base class member. More...
 
opentracing_propagation_error_code(* inject )(struct opentracing_custom_carrier_writer *writer, const struct opentracing_tracer *tracer, const opentracing_span_context *span_context) OPENTRACINGC_NONNULL_ALL
 Inject a span context into a custom format. More...
 
- Data Fields inherited from opentracing_destructible
void(* destroy )(struct opentracing_destructible *destructible) OPENTRACINGC_NONNULL_ALL
 Destructor to clean up any resources allocated to the instance. More...
 

Detailed Description

inject() carrier for a custom format.

With it, the caller can encode an opentracing_span_context for propagation as entries in a custom protocol.

Field Documentation

◆ base

opentracing_destructible opentracing_custom_carrier_writer::base

Base class member.

◆ inject

opentracing_propagation_error_code(* opentracing_custom_carrier_writer::inject) (struct opentracing_custom_carrier_writer *writer, const struct opentracing_tracer *tracer, const opentracing_span_context *span_context) OPENTRACINGC_NONNULL_ALL

Inject a span context into a custom format.

Parameters
writerWriter instance.
tracerTracer instance.
span_contextSpan context to encode.
Returns
Error code indicating success or failure.

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