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

client/web: add metric for exit node advertising #9781

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

tendstofortytwo
Copy link
Contributor

Updates tailscale/corp#15215

Signed-off-by: Naman Sood <mail@nsood.in>
@tendstofortytwo tendstofortytwo force-pushed the naman/webclient-exitnode-metric branch from 238e615 to c5f9103 Compare October 12, 2023 19:21
client/web/web.go Show resolved Hide resolved
Updates #cleanup

Signed-off-by: Naman Sood <mail@nsood.in>
Comment on lines +69 to +72
var (
exitNodeRouteV4 = netip.MustParsePrefix("0.0.0.0/0")
exitNodeRouteV6 = netip.MustParsePrefix("::/0")
)
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we actually have these vars somewhere in a lib... But this is a nice update!

Copy link
Member

Choose a reason for hiding this comment

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

we seem to have them at least 3 times in this repo. maybe the copy in net/netutil would be the best to export and reuse?

Copy link
Member

Choose a reason for hiding this comment

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

maybe in a separate PR though, since @bradfitz might have opinions on exporting those long-term?

@tendstofortytwo tendstofortytwo merged commit 7783a96 into main Oct 12, 2023
@tendstofortytwo tendstofortytwo deleted the naman/webclient-exitnode-metric branch October 12, 2023 21:02
alexelisenko pushed a commit to Control-D-Inc/tailscale that referenced this pull request Feb 15, 2024
* client/web: add metric for exit node advertising

Updates tailscale/corp#15215

Signed-off-by: Naman Sood <mail@nsood.in>

* client/web: use http request's context for IncrementCounter

Updates #cleanup

Signed-off-by: Naman Sood <mail@nsood.in>

---------

Signed-off-by: Naman Sood <mail@nsood.in>
Signed-off-by: Alex Paguis <alex@windscribe.com>
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