Skip to content

Conversation

@edgurgel
Copy link
Member

@edgurgel edgurgel commented Jun 2, 2025

It turned out that the opentelemetry setup didn't need the latest ranch

We don't need this change as it's calculating active connections differently

What kind of change does this PR introduce?

Reverts the change made here

After looking at ranch's code the essential difference is between all and active:

https://github.com/ninenines/ranch/blob/a692f44567034dacf5efcaa24a24183788594eb7/src/ranch.erl#L354-L355

		{active_connections, ranch_conns_sup:active_connections(ConnsSup)},
		{all_connections, proplists:get_value(active, supervisor:count_children(ConnsSup))},

active supervisor process is different from what ranch considers an active connection.

What is the current behavior?

Active connections metrics is not the same

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Once we upgrade cowboy + ranch we need to revisit this and understand the difference.

It turned out that the opentelemetry setup didn't need the latest ranch

We don't need this change as it's calculating active connections
differently
@vercel
Copy link

vercel bot commented Jun 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
realtime-demo ⬜️ Ignored (Inspect) Visit Preview Jun 2, 2025 10:33pm

@edgurgel edgurgel merged commit e3f8a77 into main Jun 2, 2025
5 checks passed
@edgurgel edgurgel deleted the revert/promex-phoenix-plugin branch June 2, 2025 23:35
@kiwicopple
Copy link
Member

🎉 This PR is included in version 2.36.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@coveralls
Copy link

coveralls commented Jun 3, 2025

Coverage Status

coverage: 83.735% (+1.1%) from 82.623%
when pulling d2f5065 on revert/promex-phoenix-plugin
into df13d30 on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants