Coder Social home page Coder Social logo

Comments (2)

vpareek1308 avatar vpareek1308 commented on June 5, 2024 1

@violetagg Thanks for the quick reply.

This fix makes sense, and I have added in my service for now. Maybe this can be added in the future if required. Let's close this issue for now.

from reactor-netty.

violetagg avatar violetagg commented on June 5, 2024

@vpareek1308 Why don't you create every ConnectionProvider with a different name?

For example if you have this code, you will be able to distinguish them using the name tag.

ConnectionProvider provider1 = ConnectionProvider.builder("provider1").metrics(true).build();
ConnectionProvider provider2 = ConnectionProvider.builder("provider2").metrics(true).build();

WebClient.builder()
		.clientConnector(new ReactorClientHttpConnector(HttpClient.create(provider1)))
		.build()
		.get()
		.uri("https://httpbin.org/get")
		.retrieve()
		.bodyToMono(String.class)
		.block();

WebClient.builder()
		.clientConnector(new ReactorClientHttpConnector(HttpClient.create(provider2)))
		.build()
		.get()
		.uri("https://httpbin.org/get")
		.retrieve()
		.bodyToMono(String.class)
		.block();

More about the ConnectionProvider metrics you can find here
https://projectreactor.io/docs/netty/release/reference/index.html#_metrics_6
https://projectreactor.io/docs/netty/release/reference/index.html#observability-metrics-total-connections

from reactor-netty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.