NeuralPlus 0.2.0
A small C++17 SDK for AI clients, sessions, tools, and tracing
Loading...
Searching...
No Matches
neuralplus::FunctionTracer Class Referencefinal

#include <tracing.hpp>

Inheritance diagram for neuralplus::FunctionTracer:
neuralplus::Tracer

Public Types

using Function = std::function< void(const TraceEvent &)>
 Callback signature for one structured event.
 

Public Member Functions

 FunctionTracer (Function function)
 Creates a tracer that forwards events to function.
 
void record (const TraceEvent &event) override
 Delegates one event to the configured callback.
 

Detailed Description

Callback-backed tracer, including a dependency-neutral OpenTelemetry bridge.

Concurrent record calls are serialized before invoking the callback.

See also
https://opentelemetry.io/docs/languages/cpp/instrumentation/

Member Function Documentation

◆ record()

void neuralplus::FunctionTracer::record ( const TraceEvent event)
overridevirtual

Delegates one event to the configured callback.

Implements neuralplus::Tracer.


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