-
-
Notifications
You must be signed in to change notification settings - Fork 391
Expand file tree
/
Copy pathSentryTraceContext+Private.h
More file actions
82 lines (70 loc) · 3.05 KB
/
SentryTraceContext+Private.h
File metadata and controls
82 lines (70 loc) · 3.05 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#import "SentryTraceContext.h"
#import <Foundation/Foundation.h>
@class SentryId;
@class SentryTracer;
@class SentryScope;
@class SentryOptions;
NS_ASSUME_NONNULL_BEGIN
@interface SentryTraceContext ()
/**
* Initializes a SentryTraceContext with given properties.
*/
- (instancetype)initWithTraceId:(SentryId *)traceId
publicKey:(NSString *)publicKey
releaseName:(nullable NSString *)releaseName
environment:(nullable NSString *)environment
transaction:(nullable NSString *)transaction
sampleRate:(nullable NSString *)sampleRate
sampled:(nullable NSString *)sampled
replayId:(nullable NSString *)replayId;
/**
* Initializes a SentryTraceContext with given properties.
*/
- (instancetype)initWithTraceId:(SentryId *)traceId
publicKey:(NSString *)publicKey
releaseName:(nullable NSString *)releaseName
environment:(nullable NSString *)environment
transaction:(nullable NSString *)transaction
sampleRate:(nullable NSString *)sampleRate
sampleRand:(nullable NSString *)sampleRand
sampled:(nullable NSString *)sampled
replayId:(nullable NSString *)replayId;
/**
* Initializes a SentryTraceContext with given properties including org ID.
*/
- (instancetype)initWithTraceId:(SentryId *)traceId
publicKey:(NSString *)publicKey
releaseName:(nullable NSString *)releaseName
environment:(nullable NSString *)environment
transaction:(nullable NSString *)transaction
sampleRate:(nullable NSString *)sampleRate
sampleRand:(nullable NSString *)sampleRand
sampled:(nullable NSString *)sampled
replayId:(nullable NSString *)replayId
orgId:(nullable NSString *)orgId;
/**
* Initializes a SentryTraceContext with data from scope and options.
*/
- (nullable instancetype)initWithScope:(SentryScope *)scope options:(SentryOptions *)options;
/**
* Initializes a SentryTraceContext with data from a dictionary.
*/
- (nullable instancetype)initWithDict:(NSDictionary<NSString *, id> *)dictionary;
/**
* Initializes a SentryTraceContext with data from a trace, scope and options.
*/
- (nullable instancetype)initWithTracer:(SentryTracer *)tracer
scope:(nullable SentryScope *)scope
options:(SentryOptions *)options;
/**
* Initializes a SentryTraceContext with data from a traceId, options and replayId.
*
* @param traceId The current tracer.
* @param options The current active options.
* @param replayId The current session replay.
*/
- (instancetype)initWithTraceId:(SentryId *)traceId
options:(SentryOptions *)options
replayId:(nullable NSString *)replayId;
@end
NS_ASSUME_NONNULL_END