cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
cwist_otel_cfg_t Struct Reference

Configuration for cwist_mw_otel_trace(). More...

#include <middleware.h>

Public Attributes

const char * endpoint
 
const char * service_name
 
size_t queue_cap
 
size_t batch_size
 

Detailed Description

Configuration for cwist_mw_otel_trace().

Every field is optional (NULL / 0 selects the default); the strings are copied.

Definition at line 116 of file middleware.h.

Member Data Documentation

◆ batch_size

size_t cwist_otel_cfg_t::batch_size

Spans per export request. Default: 64.

Definition at line 121 of file middleware.h.

Referenced by cwist_mw_otel_trace().

◆ endpoint

const char* cwist_otel_cfg_t::endpoint

OTLP/HTTP traces URL. Default: "http://localhost:4318/v1/traces".

Definition at line 117 of file middleware.h.

Referenced by cwist_mw_otel_trace().

◆ queue_cap

size_t cwist_otel_cfg_t::queue_cap

Spans buffered per process. Default: 512.

Definition at line 120 of file middleware.h.

Referenced by cwist_mw_otel_trace().

◆ service_name

const char* cwist_otel_cfg_t::service_name

Resource attribute service.name. Default: "cwist".

Definition at line 119 of file middleware.h.

Referenced by cwist_mw_otel_trace().


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