Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::middleware::TracingOptions Struct Reference

Options for tracing(). More...

#include <Observability.hpp>

Public Attributes

std::function< void(const Span &)> on_span_end
 

Detailed Description

Options for tracing().

Member Data Documentation

◆ on_span_end

std::function<void(const Span&)> orbit::middleware::TracingOptions::on_span_end

Called once per request when its response is sent, e.g. to export the span to an OpenTelemetry collector. Runs on the thread that sent the response; keep it fast or hand the span to a queue.


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