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

Introduce a ChunkRef type as part of logproto #5643

Merged

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Mar 16, 2022

What this PR does / why we need it:

This adds a ChunkRef protobuf type as a part of logproto.

Special notes for your reviewer:

In follow up PRs I plan to:

  • Add a Checksum field (keeping the size of the refactoring small per PR)
  • Replace the TSDB type ChunkRef with the one from logproto:
    type ChunkRef struct {
    User string
    Fingerprint model.Fingerprint
    Start, End model.Time
    Checksum uint32
    }

Checklist
- [ ] Documentation added
- [ ] Tests updated
- [ ] Add an entry in the CHANGELOG.md about the changes.

@simonswine simonswine changed the title 20220316 introduce proto chunkref Introduce a ChunkRef type as part of logproto Mar 16, 2022
@simonswine simonswine force-pushed the 20220316_introduce-proto-chunkref branch from 2964c14 to de59c13 Compare March 16, 2022 16:25
@@ -2,7 +2,7 @@ syntax = "proto3";

package ingesterpb;

option go_package = "client";
option go_package = "github.com/grafana/loki/pkg/ingester/client";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be the full go path to the package rather than just client

@simonswine simonswine marked this pull request as ready for review March 16, 2022 16:26
@simonswine simonswine requested a review from a team as a code owner March 16, 2022 16:26
@simonswine simonswine force-pushed the 20220316_introduce-proto-chunkref branch 2 times, most recently from 4ec8a22 to 4167dc1 Compare March 17, 2022 10:56
@simonswine simonswine force-pushed the 20220316_introduce-proto-chunkref branch from 4167dc1 to 4031dba Compare March 17, 2022 11:01
@simonswine simonswine force-pushed the 20220316_introduce-proto-chunkref branch from 4031dba to c4233a0 Compare March 17, 2022 11:13
Copy link
Contributor

@cyriltovena cyriltovena 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 cyriltovena merged commit ea62af5 into grafana:main Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants