22
22
#import " NRMABool.h"
23
23
#import " NRMASupportMetricHelper.h"
24
24
#import " Constants.h"
25
+ #import " BlockAttributeValidator.h"
25
26
26
27
@interface NRMAAnalytics (Protected)
27
28
// Because the NRMAAnalytics class interfaces with non Objective-C++ files, we cannot expose the API on the header. Therefore, we must use this reference.
@@ -198,7 +199,7 @@ - (void) recordError:(NSError * _Nonnull)error
198
199
resultMap,
199
200
[self createThreadVector: callstack length: frames]
200
201
);
201
- NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [NewRelicInternalUtils attributeValidator ]] autorelease ];
202
+ NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [BlockAttributeValidator attributeValidator ]] autorelease ];
202
203
203
204
if (attributes != nil ) {
204
205
[contextAdapter addAttributesNewValidation: attributes];
@@ -218,7 +219,7 @@ - (void) recordError:(NSError * _Nonnull)error
218
219
[self createThreadVector: callstack length: frames]
219
220
);
220
221
221
- NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [NewRelicInternalUtils attributeValidator ]] autorelease ];
222
+ NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [BlockAttributeValidator attributeValidator ]] autorelease ];
222
223
223
224
if (attributes != nil ) {
224
225
[contextAdapter addAttributes: attributes];
@@ -268,7 +269,7 @@ - (void) recordHandledException:(NSException*)exception
268
269
269
270
[self checkOffline: report];
270
271
271
- NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [NewRelicInternalUtils attributeValidator ]] autorelease ];
272
+ NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [BlockAttributeValidator attributeValidator ]] autorelease ];
272
273
273
274
if (attributes != nil ) {
274
275
[contextAdapter addAttributesNewValidation: attributes];
@@ -287,7 +288,7 @@ - (void) recordHandledException:(NSException*)exception
287
288
288
289
[self checkOffline: report];
289
290
290
- NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [NewRelicInternalUtils attributeValidator ]] autorelease ];
291
+ NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [BlockAttributeValidator attributeValidator ]] autorelease ];
291
292
292
293
if (attributes != nil ) {
293
294
[contextAdapter addAttributes: attributes];
@@ -371,7 +372,7 @@ - (void) recordHandledExceptionWithStackTrace:(NSDictionary*)exceptionDictionary
371
372
report->setAttributeNoValidation (" timeSinceLoad" , [[[NSDate new ] autorelease ] timeIntervalSinceDate: self .sessionStartDate]);
372
373
[self checkOffline: report];
373
374
374
- NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [NewRelicInternalUtils attributeValidator ]] autorelease ];
375
+ NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [BlockAttributeValidator attributeValidator ]] autorelease ];
375
376
376
377
if (exceptionDictionary != nil ) {
377
378
[contextAdapter addAttributesNewValidation: exceptionDictionary];
@@ -388,7 +389,7 @@ - (void) recordHandledExceptionWithStackTrace:(NSDictionary*)exceptionDictionary
388
389
report->setAttribute (" timeSinceLoad" , [[[NSDate new ] autorelease ] timeIntervalSinceDate: self .sessionStartDate]);
389
390
[self checkOffline: report];
390
391
391
- NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [NewRelicInternalUtils attributeValidator ]] autorelease ];
392
+ NRMAExceptionReportAdaptor* contextAdapter = [[[NRMAExceptionReportAdaptor alloc ] initWithReport: report attributeValidator: [BlockAttributeValidator attributeValidator ]] autorelease ];
392
393
393
394
if (exceptionDictionary != nil ) {
394
395
[contextAdapter addAttributes: exceptionDictionary];
0 commit comments