Skip to content

Commit

Permalink
Move ingester_traces_created_total (grafana#2884)
Browse files Browse the repository at this point in the history
* move metric

Signed-off-by: Joe Elliott <[email protected]>

* changelog

Signed-off-by: Joe Elliott <[email protected]>

---------

Signed-off-by: Joe Elliott <[email protected]>
  • Loading branch information
joe-elliott authored and galalen committed Sep 3, 2023
1 parent 2859cf8 commit 18fddab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [FEATURE] Add cli command to print out summary of large traces [#2775](https://github.com/grafana/tempo/pull/2775) (@ie-pham)
* [CHANGE] Update Go to 1.21 [#2486](https://github.com/grafana/tempo/pull/2829) (@zalegrala)
* [CHANGE] Make metrics-generator ingestion slack per tenant [#2589](https://github.com/grafana/tempo/pull/2589) (@ie-pham)
* [CHANGE] Moved the tempo_ingester_traces_created_total metric to be incremented when a trace is cut to the wal [#2884](https://github.com/grafana/tempo/pull/2884) (@joe-elliott)
* [ENHANCEMENT] Add block indexes to vParquet2 and vParquet3 to improve trace by ID lookup [#2697](https://github.com/grafana/tempo/pull/2697) (@mdisibio)
* [ENHANCEMENT] Assert ingestion rate limits as early as possible [#2640](https://github.com/grafana/tempo/pull/2703) (@mghildiy)
* [ENHANCEMENT] Add several metrics-generator fields to user-configurable overrides [#2711](https://github.com/grafana/tempo/pull/2711) (@kvrhdn)
Expand Down
2 changes: 1 addition & 1 deletion modules/ingester/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ func (i *instance) getOrCreateTrace(traceID []byte, fp uint32, maxBytes int) *li

trace = newTrace(traceID, maxBytes)
i.traces[fp] = trace
i.tracesCreatedTotal.Inc()
i.traceCount.Inc()

return trace
Expand Down Expand Up @@ -536,6 +535,7 @@ func (i *instance) writeTraceToHeadBlock(id common.ID, b []byte, start, end uint
i.headBlockMtx.Lock()
defer i.headBlockMtx.Unlock()

i.tracesCreatedTotal.Inc()
err := i.headBlock.Append(id, b, start, end)
if err != nil {
return err
Expand Down

0 comments on commit 18fddab

Please sign in to comment.