Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Implements a basic SelectSeries API for querying metrics on profiles #160

Merged
merged 4 commits into from Aug 31, 2022

Conversation

cyriltovena
Copy link
Collaborator

No description provided.

@cyriltovena cyriltovena marked this pull request as ready for review August 25, 2022 09:23
response.Error = err
return response
}
// todo remove me and add the series to the frame.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aocenas will take over from here.

}

// Equal compares two protobuf messages ignoring extra generated proto fields.
func EqualProto(t *testing.T, expected, actual interface{}) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When comparing proto I suggest everyone to use that one, the output is way more useful and it automatically ignore proto fields.

Copy link
Collaborator

@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

Played a bit around with the parameters and it looked all like it is doing the right thing

Profiles: tt.in,
}), nil)
return q, nil
}, log.NewLogfmtLogger(os.Stdout))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not too sure if this was an oversight or not, feel free to ignore:

Suggested change
}, log.NewLogfmtLogger(os.Stdout))
}, log.NewLogfmtLogger(os.Stderr))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

on my env it doesn't really matter.

@cyriltovena cyriltovena merged commit ef384c0 into main Aug 31, 2022
@cyriltovena cyriltovena deleted the select-series branch August 31, 2022 14:40
simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
Implements a basic SelectSeries API for querying metrics on profiles
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants