Skip to content

File tracer.h

FileList > docs > sandwich_c > tracer.h

Go to the source code of this file

Sandwich Tracer API.

  • #include <sys/types.h>
  • #include "sandwich_c/export.h"
  • #include "sandwich_c/tunnel.h"

Public Functions

Type Name
SANDWICH_API void sandwich_tunnel_add_tracer (struct SandwichTunnel * tun, const char * context_cstr, int fd)
Adds a tracer object to a tunnel, allows for context propagation.

Public Functions Documentation

function sandwich_tunnel_add_tracer

Adds a tracer object to a tunnel, allows for context propagation.

SANDWICH_API void sandwich_tunnel_add_tracer (
    struct SandwichTunnel * tun,
    const char * context_cstr,
    int fd
) 

Parameters:

  • tun Tunnel to associate tracer with.
  • context_cstr A string representing the context from OpenTelemetry.
  • fd File Descriptor where the tracer will write to.

The documentation for this class was generated from the following file docs/sandwich_c/tracer.h