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

use listeners to collect include metrics #11503

Merged
merged 1 commit into from Feb 15, 2024
Merged

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Feb 15, 2024

What I did
collect includes usage relying on compose-go listener

Related issue
require compose-spec/compose-go#576

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof marked this pull request as ready for review February 15, 2024 07:29
@@ -35,8 +33,12 @@ import (
// SpanOptions is a small helper type to make it easy to share the options helpers between
// downstream functions that accept slices of trace.SpanStartOption and trace.EventOption.
type SpanOptions []trace.SpanStartEventOption

type MetricsKey struct{}
Copy link
Contributor Author

@ndeloof ndeloof Feb 15, 2024

Choose a reason for hiding this comment

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

adding a slice attribute made Metrics non-comparable, so I introduced a dedicated context key struct

@ndeloof ndeloof requested review from a team, glours, milas and jhrotko and removed request for a team February 15, 2024 07:41
@ndeloof ndeloof marked this pull request as draft February 15, 2024 07:41
go.mod Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (a220043) 58.33% compared to head (8479c36) 58.41%.
Report is 1 commits behind head on main.

❗ Current head 8479c36 differs from pull request most recent head 0aad322. Consider uploading reports for the commit 0aad322 to get more accurate results

Files Patch % Lines
cmd/compose/compose.go 37.50% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11503      +/-   ##
==========================================
+ Coverage   58.33%   58.41%   +0.07%     
==========================================
  Files         134      134              
  Lines       11521    11520       -1     
==========================================
+ Hits         6721     6729       +8     
+ Misses       4137     4131       -6     
+ Partials      663      660       -3     

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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof marked this pull request as ready for review February 15, 2024 10:24
@ndeloof ndeloof requested a review from a team February 15, 2024 10:24
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@glours glours merged commit eb5f7d7 into docker:main Feb 15, 2024
24 of 25 checks passed
@ndeloof ndeloof deleted the includes_metric branch February 15, 2024 10:48
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