zworld-em/Plugins/sentry-unreal/Source/ThirdParty/Mac/include/Sentry/SentrySamplingContext.h

37 lines
1.0 KiB
C
Raw Permalink Normal View History

2025-05-11 22:07:21 +08:00
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class SentryTransactionContext;
NS_SWIFT_NAME(SamplingContext)
@interface SentrySamplingContext : NSObject
/**
* Transaction context.
*/
@property (nonatomic, readonly) SentryTransactionContext *transactionContext;
/**
* Custom data used for sampling.
*/
@property (nullable, nonatomic, readonly) NSDictionary<NSString *, id> *customSamplingContext;
/**
* Init a SentryTransactionSamplingContext.
* @param transactionContext The context of the transaction being sampled.
*/
- (instancetype)initWithTransactionContext:(SentryTransactionContext *)transactionContext;
/**
* Init a SentryTransactionSamplingContext.
* @param transactionContext The context of the transaction being sampled.
* @param customSamplingContext Custom data used for sampling.
*/
- (instancetype)initWithTransactionContext:(SentryTransactionContext *)transactionContext
customSamplingContext:(NSDictionary<NSString *, id> *)customSamplingContext;
@end
NS_ASSUME_NONNULL_END