Skip to content

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Mar 21, 2024

Previously we were discarding agent stats due to the length of connections by proto being zero.

We no longer check ConnectionsByProto because this can be simplified to check Stats == nil due to the agentapi v2 refactor.

Previously we checked nil not len:

if req.ConnectionsByProto == nil {

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @mafredri and the rest of your teammates on Graphite Graphite

@mafredri mafredri requested a review from deansheather March 21, 2024 12:07
@mafredri mafredri marked this pull request as ready for review March 21, 2024 12:09
@mafredri mafredri force-pushed the mafredri/03-21-fix_coderd_agentapi_always_write_agent_stats_when_provided branch 2 times, most recently from 33576be to 22d4860 Compare March 21, 2024 12:12
Previously we were discarding agent stats due to the length of
connections by proto being zero.
@mafredri mafredri force-pushed the mafredri/03-21-fix_coderd_agentapi_always_write_agent_stats_when_provided branch from 22d4860 to c8096db Compare March 21, 2024 12:13
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

I'm in favour of this change but deferring to Dean or other Net Gurus.

@mafredri mafredri merged commit 9c84fb7 into main Mar 21, 2024
@mafredri mafredri deleted the mafredri/03-21-fix_coderd_agentapi_always_write_agent_stats_when_provided branch March 21, 2024 14:47
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants