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

Commit b1583e4

Browse files
authored
Merge pull request #214 from grafana/20220908_created-at-flag
Add createdBy metadata to point to fire and its version
2 parents 43c96b0 + 8fcea22 commit b1583e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/firedb/deduplicating_slice.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313

1414
"github.com/grafana/fire/pkg/firedb/block"
1515
schemav1 "github.com/grafana/fire/pkg/firedb/schemas/v1"
16+
"github.com/grafana/fire/pkg/util/build"
1617
)
1718

1819
var int64SlicePool = &sync.Pool{
@@ -55,6 +56,7 @@ func (s *deduplicatingSlice[M, K, H, P]) Init(path string) error {
5556
// TODO: Reuse parquet.Writer beyond life time of the head.
5657
s.writer = parquet.NewWriter(file, s.persister.Schema(),
5758
parquet.ColumnPageBuffers(parquet.NewFileBufferPool(os.TempDir(), "firedb-parquet-buffers*")),
59+
parquet.CreatedBy("github.com/grafana/fire/"+build.Version),
5860
)
5961
s.lookup = make(map[K]int64)
6062
return nil

0 commit comments

Comments
 (0)