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

Fix tenant index field created_at #4189

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tempodb/backend/test/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func TestOriginalFixtures(t *testing.T) {
i, err := r.TenantIndex(ctx, tenant)
assert.NoError(t, err)
assert.NotNil(t, i)
assert.NotZero(t, i.CreatedAt)

assert.Equal(t, 22435, len(i.Meta))
assert.Equal(t, 3264, len(i.CompactedMeta))
Expand Down
104 changes: 52 additions & 52 deletions tempodb/backend/v1.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tempodb/backend/v1/v1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ message CompactedBlockMeta {
}

message TenantIndex {
google.protobuf.Timestamp created_at = 1[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.jsontag) = "createdAt"];
google.protobuf.Timestamp created_at = 1[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.jsontag) = "created_at"];
repeated BlockMeta meta = 2[(gogoproto.jsontag) = "meta"];
repeated CompactedBlockMeta compacted_meta = 3[(gogoproto.jsontag) = "compacted"];
}