Skip to content

Commit 1d11dca

Browse files
committed
?
1 parent cec2081 commit 1d11dca

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/core/src/metrics/internal.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ function setMetricAttribute(
8787
function 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
}

packages/core/src/utils/lru.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)