Skip to content

fix: Properly handle relational tables metrics#1788

Merged
kodiakhq[bot] merged 3 commits into
cloudquery:mainfrom
erezrokah:fix/relations_metrics
Jul 9, 2024
Merged

fix: Properly handle relational tables metrics#1788
kodiakhq[bot] merged 3 commits into
cloudquery:mainfrom
erezrokah:fix/relations_metrics

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Jul 8, 2024

Summary

Follow up to table OTEL metrics support.
For relational tables OtelStartTime and OtelEndTime are called multiple times (per parent resource), so we were reporting the start and end time incorrectly (adding up all the times).
This PR fixes it so only the first start time is reported, and the end time gets updated to the latest value.
Another possible fix to the end time is to set it to whenever the parent table finishes syncing, but I don't think that's very useful.


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@erezrokah erezrokah requested review from a team, bbernays and marianogappa and removed request for bbernays July 8, 2024 18:01
@github-actions github-actions Bot added fix and removed fix labels Jul 8, 2024
@github-actions github-actions Bot added fix and removed fix labels Jul 9, 2024
@kodiakhq kodiakhq Bot merged commit ee16898 into cloudquery:main Jul 9, 2024
kodiakhq Bot pushed a commit that referenced this pull request Jul 9, 2024
🤖 I have created a release *beep* *boop*
---


## [4.49.2](v4.49.1...v4.49.2) (2024-07-09)


### Bug Fixes

* Properly handle relational tables metrics ([#1788](#1788)) ([ee16898](ee16898))

---
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