zworld-em/Plugins/sentry-unreal/Source/Sentry/Private/Android/SentrySamplingContextAndroid.h

23 lines
646 B
C
Raw Normal View History

2025-05-11 22:07:21 +08:00
// Copyright (c) 2024 Sentry. All Rights Reserved.
#pragma once
#include "Interface/SentrySamplingContextInterface.h"
#include "Infrastructure/SentryJavaObjectWrapper.h"
class SentrySamplingContextAndroid : public ISentrySamplingContext, public FSentryJavaObjectWrapper
{
public:
SentrySamplingContextAndroid(jobject samplingContext);
void SetupClassMethods();
virtual TSharedPtr<ISentryTransactionContext> GetTransactionContext() const override;
virtual TMap<FString, FString> GetCustomSamplingContext() const override;
private:
FSentryJavaMethod GetTransactionContextMethod;
FSentryJavaMethod GetCustomSamplingContextMethod;
};