Skip to content

feat: Expose resource stats in traces as separate event#1973

Merged
kodiakhq[bot] merged 3 commits intomainfrom
feat/expose-resource-stats-in-traces
Nov 26, 2024
Merged

feat: Expose resource stats in traces as separate event#1973
kodiakhq[bot] merged 3 commits intomainfrom
feat/expose-resource-stats-in-traces

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Nov 20, 2024

Looks like:
Screenshot 2024-11-20 at 11 30 09

@disq disq requested review from a team, erezrokah and ronsh12 and removed request for ronsh12 November 20, 2024 11:03
@github-actions github-actions bot added the feat label Nov 20, 2024
@github-actions github-actions bot added feat and removed feat labels Nov 20, 2024
}
tableMetrics := w.metrics.TableClient[table.Name][clientName]
defer func() {
span.AddEvent("sync.finish.stats", trace.WithAttributes(
Copy link
Copy Markdown
Member Author

@disq disq Nov 20, 2024

Choose a reason for hiding this comment

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

Turns out you can also do span.SetAttributes(...) but having a separate "finish event" (with the stats attached, we already know when the span ended otherwise) is better.

@disq disq added the automerge label Nov 26, 2024
@kodiakhq kodiakhq bot merged commit e74bb27 into main Nov 26, 2024
@kodiakhq kodiakhq bot deleted the feat/expose-resource-stats-in-traces branch November 26, 2024 09:33
kodiakhq bot pushed a commit that referenced this pull request Nov 26, 2024
🤖 I have created a release *beep* *boop*
---


## [4.70.0](v4.69.0...v4.70.0) (2024-11-26)


### Features

* Expose resource stats in traces as separate event ([#1973](#1973)) ([e74bb27](e74bb27))


### Bug Fixes

* **deps:** Update aws-sdk-go-v2 monorepo ([#1976](#1976)) ([566409d](566409d))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants