userver: tracing::GenericTracingManager Class Reference
Loading...
Searching...
No Matches
tracing::GenericTracingManager Class Referencefinal

#include <userver/tracing/manager.hpp>

Detailed Description

Generic tracing manager that knows about popular tracing headers and allows customising input and output headers.

Definition at line 86 of file manager.hpp.

+ Inheritance diagram for tracing::GenericTracingManager:

Public Member Functions

 GenericTracingManager (utils::Flags< Format > in_request_response, utils::Flags< Format > new_request)
 
bool TryFillSpanBuilderFromRequest (const server::http::HttpRequest &request, SpanBuilder &span_builder) const override
 
void FillRequestWithTracingContext (const tracing::Span &span, clients::http::PluginRequest request) const override
 Fill new client requests with tracing information.
 
void FillResponseWithTracingContext (const Span &span, server::http::HttpResponse &response) const override
 Fill response with tracing information.
 

Constructor & Destructor Documentation

◆ GenericTracingManager()

tracing::GenericTracingManager::GenericTracingManager ( utils::Flags< Format > in_request_response,
utils::Flags< Format > new_request )
inline

Definition at line 90 of file manager.hpp.

Member Function Documentation

◆ FillRequestWithTracingContext()

void tracing::GenericTracingManager::FillRequestWithTracingContext ( const tracing::Span & span,
clients::http::PluginRequest request ) const
overridevirtual

Fill new client requests with tracing information.

Implements tracing::TracingManagerBase.

◆ FillResponseWithTracingContext()

void tracing::GenericTracingManager::FillResponseWithTracingContext ( const Span & span,
server::http::HttpResponse & response ) const
overridevirtual

Fill response with tracing information.

Implements tracing::TracingManagerBase.

◆ TryFillSpanBuilderFromRequest()

bool tracing::GenericTracingManager::TryFillSpanBuilderFromRequest ( const server::http::HttpRequest & request,
SpanBuilder & span_builder ) const
overridevirtual

Fill SpanBuilder params with actual tracing information extracted from the request. You should build Span with SpanBuilder::Build, after calling this.

Returns
Returns bool, that tells us was any of tracing headers used to create new span

Implements tracing::TracingManagerBase.


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