userver: tracing::TracingManagerBase Class Reference
Loading...
Searching...
No Matches
tracing::TracingManagerBase Class Referenceabstract

#include <userver/tracing/manager.hpp>

Detailed Description

Base class for propagating trace context information in headers.

Mostly used by tracing::DefaultTracingManagerLocator.

Definition at line 26 of file manager.hpp.

+ Inheritance diagram for tracing::TracingManagerBase:

Public Member Functions

virtual bool TryFillSpanBuilderFromRequest (const server::http::HttpRequest &request, SpanBuilder &span_builder) const =0
 
virtual void FillRequestWithTracingContext (const Span &span, clients::http::RequestTracingEditor request) const =0
 Fill new client requests with tracing information.
 
virtual void FillResponseWithTracingContext (const Span &span, server::http::HttpResponse &response) const =0
 Fill response with tracing information.
 

Member Function Documentation

◆ FillRequestWithTracingContext()

virtual void tracing::TracingManagerBase::FillRequestWithTracingContext ( const Span & span,
clients::http::RequestTracingEditor request ) const
pure virtual

Fill new client requests with tracing information.

Implemented in tracing::GenericTracingManager.

◆ FillResponseWithTracingContext()

virtual void tracing::TracingManagerBase::FillResponseWithTracingContext ( const Span & span,
server::http::HttpResponse & response ) const
pure virtual

Fill response with tracing information.

Implemented in tracing::GenericTracingManager.

◆ TryFillSpanBuilderFromRequest()

virtual bool tracing::TracingManagerBase::TryFillSpanBuilderFromRequest ( const server::http::HttpRequest & request,
SpanBuilder & span_builder ) const
pure virtual

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

Implemented in tracing::GenericTracingManager.


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