File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ function setMetricAttribute(
8787function validateAndProcessSampleRate ( metric : Metric , client : Client ) : boolean {
8888 if ( metric . sample_rate !== undefined ) {
8989 if ( metric . sample_rate <= 0 || metric . sample_rate > 1.0 ) {
90- // Invalid sample rate - drop the metric entirely and record the lost event
9190 client . recordDroppedEvent ( 'invalid_sample_rate' , 'metric' ) ;
9291 return false ;
9392 }
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class LRUMap<K, V> {
2828 if ( this . _cache . size >= this . _maxSize ) {
2929 // keys() returns an iterator in insertion order so keys().next() gives us the oldest key
3030 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
31- const nextKey = this . _cache . keys ( ) . next ( ) . value ;
31+ const nextKey = this . _cache . keys ( ) . next ( ) . value ! ;
3232 this . _cache . delete ( nextKey ) ;
3333 }
3434 this . _cache . set ( key , value ) ;
You can’t perform that action at this time.
0 commit comments