File tree 1 file changed +9
-3
lines changed
tests/OpenTelemetry/Integration/API
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ public function providerAnalyticsEvent()
345
345
["false " , 0 ],
346
346
["False " , 0 ],
347
347
["FALSE " , 0 ],
348
- ["something-else " , 0 ],
348
+ ["something-else " , null ],
349
349
[True , 1 ],
350
350
[False , 0 ],
351
351
['t ' , 1 ],
@@ -354,6 +354,8 @@ public function providerAnalyticsEvent()
354
354
['F ' , 0 ],
355
355
['1 ' , 1 ],
356
356
['0 ' , 0 ],
357
+ ['fAlse ' , null ],
358
+ ['trUe ' , null ]
357
359
];
358
360
}
359
361
@@ -372,8 +374,12 @@ public function testReservedAttributesOverridesAnalyticsEvent($analyticsEventVal
372
374
});
373
375
374
376
$ span = $ traces [0 ][0 ];
375
- $ actualMetricValue = $ span ['metrics ' ]['_dd1.sr.eausr ' ];
376
- $ this ->assertEquals ($ expectedMetricValue , $ actualMetricValue );
377
+ if ($ expectedMetricValue !== null ) {
378
+ $ actualMetricValue = $ span ['metrics ' ]['_dd1.sr.eausr ' ];
379
+ $ this ->assertEquals ($ expectedMetricValue , $ actualMetricValue );
380
+ } else {
381
+ $ this ->assertArrayNotHasKey ('_dd1.sr.eausr ' , $ span ['metrics ' ]);
382
+ }
377
383
}
378
384
379
385
public function testSpanErrorStatus ()
You can’t perform that action at this time.
0 commit comments