zworld-em/Plugins/sentry-unreal/Source/Sentry/Private/Apple/SentrySpanApple.h

31 lines
1.0 KiB
C
Raw Permalink Normal View History

2025-05-11 22:07:21 +08:00
// Copyright (c) 2023 Sentry. All Rights Reserved.
#pragma once
#include "Interface/SentrySpanInterface.h"
@protocol SentrySpan;
class SentrySpanApple : public ISentrySpan
{
public:
SentrySpanApple(id<SentrySpan> span);
virtual ~SentrySpanApple() override;
id<SentrySpan> GetNativeObject();
virtual TSharedPtr<ISentrySpan> StartChild(const FString& operation, const FString& desctiption) override;
virtual TSharedPtr<ISentrySpan> StartChildWithTimestamp(const FString& operation, const FString& desctiption, int64 timestamp) override;
virtual void Finish() override;
virtual void FinishWithTimestamp(int64 timestamp) override;
virtual bool IsFinished() const override;
virtual void SetTag(const FString& key, const FString& value) override;
virtual void RemoveTag(const FString& key) override;
virtual void SetData(const FString& key, const TMap<FString, FString>& values) override;
virtual void RemoveData(const FString& key) override;
virtual void GetTrace(FString& name, FString& value) override;
private:
id<SentrySpan> SpanApple;
};