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

Limits to required labels when querying for App #856

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

cyriltovena
Copy link
Collaborator

No description provided.

const response = await requestWithOrgID('/querier.v1.QuerierService/Series', {
method: 'POST',
body: JSON.stringify({
matchers: [],
labelNames: [PyroscopeAppLabel, ServiceNameLabel, '__profile_type__'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I fear we might also need to have some compatibility with older versions of the API.

When you give unknown fields that happens:

HTTP2/400
{
  "code": "invalid_argument",
  "message": "unmarshal into *querierv1.SeriesRequest: proto: (line 1:2): unknown field \"xxxlabel_names\""
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ho that sux

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 maybe something we can change in connect-go

Copy link
Contributor

@Rperry2174 Rperry2174 left a comment

Choose a reason for hiding this comment

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

Lgtm

@cyriltovena
Copy link
Collaborator Author

It works for both, looking at adding service reflection and next time we should bump the service version for that type of change

Many gRPC-specific tools depend on server reflection, which lets callers access your service's Protobuf schema at runtime. Connect supports server reflection with the github.com/bufbuild/connect-grpcreflect-go package. Keep in mind that there are two versions of the gRPC server reflection API, and many tools (including grpcurl) still use the older one — most services should mount handlers from both grpcreflect.NewHandlerV1 and grpcreflect.NewHandlerV1Alpha.

@cyriltovena cyriltovena enabled auto-merge (squash) July 13, 2023 14:53
@cyriltovena cyriltovena merged commit 54733b0 into main Jul 13, 2023
16 checks passed
@cyriltovena cyriltovena deleted the feat/limit-series-label-ui branch July 13, 2023 14:54
simonswine pushed a commit to simonswine/pyroscope that referenced this pull request Jul 18, 2023
* Limits to required labels when querying for App

* yarn format

* Add back missing labels

* support old version
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.

3 participants