Skip to content

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Aug 21, 2023

An attempt to fix #2282 and #2179.

@kolesnikovae kolesnikovae marked this pull request as ready for review August 21, 2023 06:12
@kolesnikovae kolesnikovae requested a review from a team as a code owner August 21, 2023 06:12
@kolesnikovae kolesnikovae linked an issue Aug 21, 2023 that may be closed by this pull request
Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM


func (t *Tree) InsertStack(v int64, stack ...string) {
if v <= 0 {
return
Copy link
Contributor

Choose a reason for hiding this comment

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

I think silently dropping sample values is good enough to stop the bleed, but I think longer term we need to make sure that sample values won't get that far and are filtered during the upload (Grafana Agent, SDKs).

Let's maybe create an issue to not forget about this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, it makes sense to better understand the problem. Created an issue #2285 – will take a closer look later

@kolesnikovae kolesnikovae merged commit c36db8f into next Aug 21, 2023
@kolesnikovae kolesnikovae deleted the fix/remove-negative-samples branch August 21, 2023 09:27
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.

negative memory profiles Panic in the frontend
3 participants