A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
provider.h File Reference

Process-wide tracing configuration and in-memory trace inspection. More...

#include <string>
#include <utility>
#include <vector>
#include <absl/status/status.h>
#include "a11/obs/span.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::obs::ProviderOptions
 Configure how an A11 process records and exports agent traces. More...
 
struct  a11::obs::RecordedEvent
 Event captured on a span by the in-memory exporter. More...
 
struct  a11::obs::RecordedSpan
 Finished span snapshot returned by the in-memory exporter. More...
 

Namespaces

namespace  a11
 
namespace  a11::obs
 

Enumerations

enum class  a11::obs::ExporterKind { a11::obs::kNone , a11::obs::kInMemory , a11::obs::kOstream , a11::obs::kOtlpHttp }
 Destination used for spans produced by actions, sessions, and transports. More...
 

Functions

absl::Status a11::obs::Configure (const ProviderOptions &options)
 Install or replace the process-wide tracer provider.
 
void a11::obs::Shutdown ()
 Flush pending spans and restore the process to its unconfigured state.
 
bool a11::obs::IsConfigured ()
 Whether a tracer provider is currently installed.
 
std::vector< RecordedSpana11::obs::GetRecordedSpans ()
 Return in-memory spans oldest first; meaningful for kInMemory only.
 
void a11::obs::ClearRecordedSpans ()
 Clear spans retained by the in-memory exporter.
 

Detailed Description

Process-wide tracing configuration and in-memory trace inspection.