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

Aggregate() for Connections, ConnectionsTelemetry #249

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nplanel
Copy link
Contributor

@nplanel nplanel commented Apr 27, 2023

Reviewers: please see the review guidelines.

@nplanel nplanel requested review from a team as code owners April 27, 2023 08:31
@nplanel nplanel requested review from kevinconaway and removed request for a team April 27, 2023 08:32
@@ -142,3 +142,46 @@ func (m *CollectorConnections) GetConnectionsTags(tagIndex int32) []string {
func (m *CollectorConnections) UnsafeIterateConnectionTags(tagIndex int32, cb func(i, total int, tag []byte) bool) {
unsafeIterateTags(m.EncodedConnectionsTags, int(tagIndex), cb)
}

// Aggregate telemetry counters
func (t *ConnectionsTelemetry) Aggregate(a *ConnectionsTelemetry) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You should probably add a comment in the proto file indicating that this method needs to be updated whenever fields are added; the next person is probably going to forget

@nplanel nplanel force-pushed the nplanel/connections-aggregate branch from ff96ca8 to 3c46f51 Compare June 9, 2023 15:39
@nplanel nplanel force-pushed the nplanel/connections-aggregate branch from 3c46f51 to 86c8dc0 Compare June 9, 2023 15:42
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.

2 participants