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

refactor: exporter config #214

Merged
merged 3 commits into from
Nov 7, 2024
Merged

refactor: exporter config #214

merged 3 commits into from
Nov 7, 2024

Conversation

lvlcn-t
Copy link
Collaborator

@lvlcn-t lvlcn-t commented Nov 5, 2024

Motivation

To address this code smell aswell as adding missing telemetry configs to our documentation.

Changes

  • refactor: add common exporter config struct instead of multiple returns
  • docs: add missing docs for exporter config

For additional information look at the commits.

Tests done

  • Unit tests succeeded
  • E2E tests succeeded - not applicable

TODO

  • I've assigned this PR to myself
  • I've labeled this PR correctly

* refactor: add common exporter config struct instead of multiple returns
* docs: add missing docs for exporter config

Signed-off-by: lvlcn-t <[email protected]>
@lvlcn-t lvlcn-t added docs Improvements or additions to documentation refactoring Refactoring of existing code area/config Issues/PRs related to the startup/sparrow config area labels Nov 5, 2024
@lvlcn-t lvlcn-t self-assigned this Nov 5, 2024
Merged the two ifs into one.
Copy link
Collaborator

@puffitos puffitos left a comment

Choose a reason for hiding this comment

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

Just a nit. I've added a commit, spotted an double if that was uneeded.

pkg/sparrow/metrics/config.go Outdated Show resolved Hide resolved
@lvlcn-t lvlcn-t requested a review from puffitos November 7, 2024 13:39
@lvlcn-t lvlcn-t merged commit da02b0e into main Nov 7, 2024
8 checks passed
@lvlcn-t lvlcn-t deleted the refactor/common-exporter-cfg branch November 7, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config Issues/PRs related to the startup/sparrow config area docs Improvements or additions to documentation refactoring Refactoring of existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants