![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IAnalyticsTracer.h>
Inheritance diagram for IAnalyticsTracer:Public Member Functions | |
| IAnalyticsTracer () | |
| virtual | ~IAnalyticsTracer () |
| virtual void | StartSession ()=0 |
| virtual void | EndSession ()=0 |
| virtual void | SetProvider (TSharedPtr< IAnalyticsProvider > AnalyticsProvider)=0 |
| virtual TSharedPtr< IAnalyticsSpan > | StartSpan (const FName Name, TSharedPtr< IAnalyticsSpan > ParentSpan=TSharedPtr< IAnalyticsSpan >(), const TArray< FAnalyticsEventAttribute > &AdditionalAttributes={})=0 |
| virtual bool | EndSpan (TSharedPtr< IAnalyticsSpan >, const TArray< FAnalyticsEventAttribute > &AdditionalAttributes={})=0 |
| virtual TSharedPtr< IAnalyticsSpan > | GetCurrentSpan () const =0 |
| virtual TSharedPtr< IAnalyticsSpan > | GetSessionSpan () const =0 |
| virtual TSharedPtr< IAnalyticsSpan > | GetSpan (const FName Name)=0 |
| TSharedPtr< IAnalyticsSpan > | StartSpan (const FName Name, const TArray< FAnalyticsEventAttribute > &AdditionalAttributes={}) |
| bool | EndSpan (const FName Name, const TArray< FAnalyticsEventAttribute > &AdditionalAttributes={}) |
IAnalyticsTracer Interface
Inspired by OpenTelemety model for Tracer/Span. A tracer manages and create spans. It is not permitted to create or start a span outside of the owning tracer object. By default, new spans are added as a child of the last added span but can be added to a child of a specified parent for clarity The tracer has a valid SessionSpan object which is the root of the span hierarchy which is expected to be valid between the StartSession and EndSession calls. Spans are hierarchical and are not expected to overlap, even though the API or implementation might well allow that.
|
inline |
|
inlinevirtual |
Implemented in FAnalyticsTracer.
|
inline |
End an existing span by name
|
pure virtual |
End an existing span
Implemented in FAnalyticsTracer.
|
pure virtual |
Get the currently active span
Implemented in FAnalyticsTracer.
|
pure virtual |
Get the session span, this will always be valid for an active session
Implemented in FAnalyticsTracer.
|
pure virtual |
Get an active span by name, non active spans will not be available
Implemented in FAnalyticsTracer.
|
pure virtual |
Sets the analytics provider for the tracer
Implemented in FAnalyticsTracer.
Implemented in FAnalyticsTracer.
|
inline |
Start a new span without a parent
|
pure virtual |
Start a new span specifying an optional parent. EndSpan is called recursively on children. Parent attributes are passed onto children
Implemented in FAnalyticsTracer.