|
| 1 | +#import <Foundation/Foundation.h> |
| 2 | +#if !__has_include(<SentryObjC/SentryObjCDefines.h>) |
| 3 | +# import "SentryObjCDataCollectionHttpBodyType.h" |
| 4 | +#else |
| 5 | +# import <SentryObjC/SentryObjCDataCollectionHttpBodyType.h> |
| 6 | +#endif |
| 7 | + |
| 8 | +@class SentryObjCDataCollectionKeyValueCollectionBehavior; |
| 9 | +@class SentryObjCDataCollectionHttpHeaderCollectionOptions; |
| 10 | +@class SentryObjCDataCollectionGraphQLCollectionOptions; |
| 11 | +@class SentryObjCDataCollectionDatabaseCollectionOptions; |
| 12 | + |
| 13 | +NS_ASSUME_NONNULL_BEGIN |
| 14 | + |
| 15 | +/// Configuration for what data the SDK collects automatically. |
| 16 | +/// |
| 17 | +/// All properties have spec-defined defaults. Users supply only the options they want to override; |
| 18 | +/// omitted fields use the documented defaults. |
| 19 | +/// |
| 20 | +/// Data explicitly set by the user on the scope is not gated by these options. |
| 21 | +@interface SentryObjCDataCollectionOptions : NSObject |
| 22 | + |
| 23 | +/// Automatically populate @c user.* fields from auto-instrumentation. Defaults to @c YES. |
| 24 | +@property (nonatomic) BOOL userInfo; |
| 25 | + |
| 26 | +/// Controls cookie collection. Defaults to denyList. |
| 27 | +@property (nonatomic, strong) SentryObjCDataCollectionKeyValueCollectionBehavior *cookies; |
| 28 | + |
| 29 | +/// Controls HTTP header collection for request and response directions. |
| 30 | +@property (nonatomic, strong) SentryObjCDataCollectionHttpHeaderCollectionOptions *httpHeaders; |
| 31 | + |
| 32 | +/// Body types to collect. Defaults to @c SentryObjCDataCollectionHttpBodyTypeAll. |
| 33 | +@property (nonatomic) SentryObjCDataCollectionHttpBodyType httpBodies; |
| 34 | + |
| 35 | +/// Controls URL query parameter filtering. Defaults to denyList. |
| 36 | +@property (nonatomic, strong) SentryObjCDataCollectionKeyValueCollectionBehavior *queryParams; |
| 37 | + |
| 38 | +/// Controls GraphQL document and variable collection. |
| 39 | +@property (nonatomic, strong) SentryObjCDataCollectionGraphQLCollectionOptions *graphql; |
| 40 | + |
| 41 | +/// Controls database query parameter collection. |
| 42 | +@property (nonatomic, strong) SentryObjCDataCollectionDatabaseCollectionOptions *database; |
| 43 | + |
| 44 | +/// Include local variable values captured within stack frames. Defaults to @c YES. |
| 45 | +@property (nonatomic) BOOL stackFrameVariables; |
| 46 | + |
| 47 | +/// Number of source code lines to include above and below each stack frame. Defaults to @c 5. |
| 48 | +@property (nonatomic) NSUInteger frameContextLines; |
| 49 | + |
| 50 | +- (instancetype)init; |
| 51 | + |
| 52 | +@end |
| 53 | + |
| 54 | +NS_ASSUME_NONNULL_END |
0 commit comments