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(cli): break down observability.startMetrics() #3196

Merged
merged 5 commits into from Aug 6, 2023

Conversation

julio-lopez
Copy link
Collaborator

@julio-lopez julio-lopez commented Aug 6, 2023

Motivation: reduce the function complexity for the linter, so additional functionality can be added to startMetrics()

No functional changes.

Breaks down observability.startMetrics() into:

  • maybeStartListener
  • maybeStartMetricsPusher
  • maybeStartTraceExporter

@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Patch coverage: 77.04% and project coverage change: -0.02% ⚠️

Comparison is base (0d2a7c8) 75.43% compared to head (9d2a6db) 75.41%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3196      +/-   ##
==========================================
- Coverage   75.43%   75.41%   -0.02%     
==========================================
  Files         459      459              
  Lines       36456    36465       +9     
==========================================
  Hits        27501    27501              
- Misses       7042     7048       +6     
- Partials     1913     1916       +3     
Files Changed Coverage Δ
cli/observability_flags.go 81.61% <77.04%> (+4.45%) ⬆️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Motivation: reduce the function complexity for the linter, so additional
functionality can be added to `startMetrics()`

No functional changes.
Reduce indentation by returning early
Reduce indentation by returning early
@jkowalski
Copy link
Contributor

LGTM on the direction.

@julio-lopez julio-lopez marked this pull request as ready for review August 6, 2023 18:42
@julio-lopez julio-lopez merged commit 9f33f70 into kopia:master Aug 6, 2023
27 checks passed
@julio-lopez julio-lopez deleted the refactor/observability branch August 6, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants