![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IAnalyticsTracer.h>
Inheritance diagram for IAnalyticsSpan:Public Member Functions | |
| IAnalyticsSpan (const FName Name) | |
| virtual | ~IAnalyticsSpan () |
| virtual void | SetProvider (TSharedPtr< IAnalyticsProvider > AnalyticsProvider)=0 |
| virtual void | Start (const TArray< FAnalyticsEventAttribute > &AdditionalAttributes={})=0 |
| virtual void | End (const TArray< FAnalyticsEventAttribute > &AdditionalAttributes={})=0 |
| virtual void | AddAttributes (const TArray< FAnalyticsEventAttribute > &AdditionalAttributes)=0 |
| virtual void | RecordEvent (const FString &EventName, const TArray< FAnalyticsEventAttribute > &AdditionalAttributes={})=0 |
| virtual const FName & | GetName () const =0 |
| virtual const TArray< FAnalyticsEventAttribute > & | GetAttributes () const =0 |
| virtual void | SetStackDepth (uint32 Depth)=0 |
| virtual uint32 | GetStackDepth () const =0 |
| virtual double | GetDuration () const =0 |
| virtual double | GetElapsedTime ()=0 |
| virtual bool | GetIsActive () const =0 |
| virtual FGuid | GetId () const =0 |
IAnalyticsSpan Interface
Inspired by OpenTelemety model for Tracer/Span. A span should be used to measure long running actions. It can be thought of as hierarchical timer object. A span capture event state within an array of EventAattributes and emit them with every event sent from this span A span can only be started via a IAnalyticsTracer interface, but can be Ended on demand Spans are arranged hierarchically and the expected behavior is for the parent span to end the spans of its children on during it's own End call Elapsed time should be calculated on each call, but on when the span is active Will send telemetry events via the IAnalyticsProvider
|
inline |
|
inlinevirtual |
|
pure virtual |
Append attributes to this span context
Implemented in FAnalyticsSpan.
|
pure virtual |
End this span
Implemented in FAnalyticsSpan.
|
pure virtual |
Get context attributes for the span
Implemented in FAnalyticsSpan.
Get the span duration in seconds
Implemented in FAnalyticsSpan.
Get the elapsed time for the span in seconds
Implemented in FAnalyticsSpan.
Implemented in FAnalyticsSpan.
Implemented in FAnalyticsSpan.
Get the internal name for the span
Implemented in FAnalyticsSpan.
Get the scope depth for the span
Implemented in FAnalyticsSpan.
|
pure virtual |
Record an event from this span, appends the attributes for the span context
Implemented in FAnalyticsSpan.
|
pure virtual |
Sets the analytics provider for the tracer
Implemented in FAnalyticsSpan.
Set the scope depth for the span
Implemented in FAnalyticsSpan.
|
pure virtual |
Start this span
Implemented in FAnalyticsSpan.