Navigation
API > API/Runtime > API/Runtime/Analytics
Implementation of an IAnalyticsSpan interface
| Name | FAnalyticsSpan |
| Type | class |
| Header File | /Engine/Source/Runtime/Analytics/Analytics/Public/AnalyticsTracer.h |
| Include Path | #include "AnalyticsTracer.h" |
Syntax
class FAnalyticsSpan : public IAnalyticsSpan
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAnalyticsSpan
(
FName SpanName |
AnalyticsTracer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FAnalyticsSpan() |
AnalyticsTracer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AnalyticsProvider | TSharedPtr< IAnalyticsProvider > | AnalyticsTracer.h | ||
| Attributes | TArray< FAnalyticsEventAttribute > | AnalyticsTracer.h | ||
| Duration | double | AnalyticsTracer.h | ||
| EndTime | FDateTime | AnalyticsTracer.h | ||
| Guid | FGuid | AnalyticsTracer.h | ||
| IsActive | bool | AnalyticsTracer.h | ||
| Name | FName | AnalyticsTracer.h | ||
| StackDepth | uint32 | AnalyticsTracer.h | ||
| StartTime | FDateTime | AnalyticsTracer.h | ||
| ThreadId | FThreadId | AnalyticsTracer.h |
Functions
Public
Overridden from IAnalyticsSpan
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddAttributes
(
const TArray< FAnalyticsEventAttribute >& AdditionalAttributes |
Append attributes to this span context | AnalyticsTracer.h | |
virtual void End
(
const TArray< FAnalyticsEventAttribute >& AdditionalAttributes |
End this span | AnalyticsTracer.h | |
virtual const TArray< FAnalyticsEventAttribute > & GetAttributes() |
Get context attributes for the span | AnalyticsTracer.h | |
virtual double GetDuration() |
Get the span duration in seconds | AnalyticsTracer.h | |
virtual double GetElapsedTime() |
Get the elapsed time for the span in seconds | AnalyticsTracer.h | |
virtual FGuid GetId() |
Get unique Id? | AnalyticsTracer.h | |
virtual bool GetIsActive() |
Is the span active? | AnalyticsTracer.h | |
virtual const FName & GetName() |
Get the internal name for the span | AnalyticsTracer.h | |
virtual uint32 GetStackDepth() |
Get the scope depth for the span | AnalyticsTracer.h | |
virtual void RecordEvent
(
const FString& EventName, |
Record an event from this span, appends the attributes for the span context | AnalyticsTracer.h | |
virtual void SetProvider
(
TSharedPtr< IAnalyticsProvider > AnalyticsProvider |
Public IAnalyticsSpan implementation. | AnalyticsTracer.h | |
virtual void SetStackDepth
(
uint32 Depth |
Set the scope depth for the span | AnalyticsTracer.h | |
virtual void Start
(
const TArray< FAnalyticsEventAttribute >& AdditionalAttributes |
Start this span | AnalyticsTracer.h |