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

Primary Constructor support #232

Open
eerhardt opened this issue Jul 17, 2023 · 0 comments
Open

Primary Constructor support #232

eerhardt opened this issue Jul 17, 2023 · 0 comments

Comments

@eerhardt
Copy link
Contributor

eerhardt commented Jul 17, 2023

When a class uses the new "primary constructor" support, I'm not able to see all the places that call the primary constructor.

    internal sealed class SocketsHttpHandlerMetrics(Meter meter)
    {
        public readonly UpDownCounter<long> CurrentConnections = meter.CreateUpDownCounter<long>(
            name: "http-client-current-connections",
            description: "Number of outbound HTTP connections that are currently active on the client.");
 
        public readonly UpDownCounter<long> IdleConnections = meter.CreateUpDownCounter<long>(
            name: "http-client-current-idle-connections",
            description: "Number of outbound HTTP connections that are currently idle on the client.");
 
        public readonly Histogram<double> ConnectionDuration = meter.CreateHistogram<double>(
            name: "http-client-connection-duration",
            unit: "s",
            description: "The duration of outbound HTTP connections.");
    }

Clicking on the class name (which is the only place the constructor is shown, gives me just where the class is referenced:

image

I don't see any calls to new SocketsHttpHandlerMetrics(meter).

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

No branches or pull requests

1 participant