Skip to content

Conversation

@Net-burst
Copy link
Collaborator

No description provided.

@Net-burst Net-burst requested a review from And1sS February 14, 2025 04:26
@Net-burst Net-burst force-pushed the prepend-account-to-id branch from bbf4cbf to 13d037a Compare February 14, 2025 05:10
@Net-burst Net-burst changed the base branch from authorization/post-cache to master February 14, 2025 05:10
@Net-burst Net-burst force-pushed the prepend-account-to-id branch from 4b8925e to 46c83ba Compare February 15, 2025 23:04
@Net-burst Net-burst changed the title Prepend account id to cache id Emit unauthorized writes metric Feb 16, 2025
Comment on lines 135 to 137
if (!isValidApiKey) {
metricsRecorder.markMeterForTag(metricTagPrefix, MeasurementTag.UNAUTHORIZED_WRITE);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, move metrics emitting to where current method is used. It will be so confusing to find out at some point that method with naming convention isSomethingTrue does side effects.

@Net-burst Net-burst requested a review from And1sS February 18, 2025 02:34
@Net-burst Net-burst merged commit 89cc3cf into master Feb 19, 2025
4 checks passed
@Net-burst Net-burst deleted the prepend-account-to-id branch February 19, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants