forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSentrySamplingContext.h
38 lines (29 loc) · 1.03 KB
/
SentrySamplingContext.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#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