You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This class holds SDK internal limits (https://support.count.ly/hc/en-us/articles/360037753291-SDK-development-guide#01H821RTQ7AZ6J858BHP4883ZC) specific configurations to be used with CountlyConfig class and serves as an interface.
8
+
// You can chain multiple configurations.
9
+
classCountlyConfigSDKInternalLimits{
10
+
constructor(){
11
+
_maxKeyLength=0;
12
+
_maxValueSize=0;
13
+
_maxSegmentationValues=0;
14
+
_maxBreadcrumbCount=0;
15
+
_maxStackTraceLinesPerThread=0;
16
+
_maxStackTraceLineLength=0;
17
+
}
18
+
19
+
// getters
20
+
getmaxKeyLength(){
21
+
returnthis._maxKeyLength;
22
+
}
23
+
24
+
getmaxValueSize(){
25
+
returnthis._maxValueSize;
26
+
}
27
+
28
+
getmaxSegmentationValues(){
29
+
returnthis._maxSegmentationValues;
30
+
}
31
+
32
+
getmaxBreadcrumbCount(){
33
+
returnthis._maxBreadcrumbCount;
34
+
}
35
+
36
+
getmaxStackTraceLinesPerThread(){
37
+
returnthis._maxStackTraceLinesPerThread;
38
+
}
39
+
40
+
getmaxStackTraceLineLength(){
41
+
returnthis._maxStackTraceLineLength;
42
+
}
43
+
44
+
// setters / methods
45
+
46
+
// Limits the maximum size of all string keys
47
+
// keyLengthLimit is the maximum char size of all string keys (default 128 chars)
48
+
setMaxKeyLength(keyLengthLimit){
49
+
this._maxKeyLength=keyLengthLimit;
50
+
returnthis;
51
+
}
52
+
53
+
// Limits the size of all values in segmentation key-value pairs
54
+
// valueSizeLimit is the maximum char size of all values in our key-value pairs (default 256 chars)
55
+
setMaxValueSize(valueSizeLimit){
56
+
this._maxValueSize=valueSizeLimit;
57
+
returnthis;
58
+
}
59
+
60
+
// Limits the max amount of custom segmentation in one event
61
+
// segmentationAmountLimit is the max amount of custom segmentation in one event (default 100 key-value pairs)
0 commit comments