Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check number of log fields in MongoDB exporter. #2451

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

ptodev
Copy link
Contributor

@ptodev ptodev commented Jan 20, 2025

Minor change to resolve a CodeQL alert. If we want to make the check super generic, we could also check for integer overflow and for an allocation that's too big. All of this sounds like overkill - after all, the amount of labels on a log line are rarely many. A limit of 100,000 should be ok in practice.

@ptodev ptodev requested a review from dehaansa January 20, 2025 11:17
@ptodev ptodev requested a review from a team as a code owner January 20, 2025 11:17
@ptodev ptodev merged commit 4af278c into main Jan 20, 2025
18 checks passed
@ptodev ptodev deleted the ptodev/limit-alloc branch January 20, 2025 17:31
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.

2 participants