Skip to content

Conversation

@imrekel
Copy link
Contributor

@imrekel imrekel commented Nov 23, 2025

No description provided.

@codecov
Copy link

codecov bot commented Nov 23, 2025

Codecov Report

❌ Patch coverage is 7.04225% with 66 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.18%. Comparing base (e51a441) to head (8a8c58c).
⚠️ Report is 24 commits behind head on master.

Files with missing lines Patch % Lines
service/mocks/jwtvalidatorrepository_mock.go 0.00% 36 Missing ⚠️
metrics/datadog.go 0.00% 29 Missing ⚠️
service/validator_repository.go 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
- Coverage   70.64%   62.18%   -8.47%     
==========================================
  Files          13       24      +11     
  Lines         293      595     +302     
==========================================
+ Hits          207      370     +163     
- Misses         68      192     +124     
- Partials       18       33      +15     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

return &DatadogMetrics{
rawClient: c,
logger: logger,
}, func() { _ = c.Close() }, nil

Choose a reason for hiding this comment

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

I think, it would be better to update this class to implement the closer interface and call the c.Close() there instead of this second return value here.

}

func (dm *DatadogMetrics) IncrRaw(name string, tags []string, rate float64) {
if err := dm.rawClient.Incr(name, tags, rate); err != nil {

Choose a reason for hiding this comment

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

Would you like to handle the case when the name is empty?

@imrekel imrekel merged commit df8ed71 into master Nov 27, 2025
1 of 3 checks passed
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.

3 participants