Comments (3)
I think, under your proposal, if this library was used in a program which happened to also use the same metric name for something else, things could get confusing.
How about splitting server.New()
into a function which registers the metrics and a function which creates the server? And leave the existing API creating a singleton which lasts the life of the program.
from common.
I think, under your proposal, if this library was used in a program which happened to also use the same metric name for something else, things could get confusing.
Thanks @bboreham, that's a very good point!
How about splitting
server.New()
into a function which registers the metrics and a function which creates the server? And leave the existing API creating a singleton which lasts the life of the program.
I've drafted this solution to see how it looks here: #289. It looks good to me - let me know if you have any early feedback. I'll add some tests before marking it as ready for review.
from common.
I've added tests and the change is now ready for review: #289
from common.
Related Issues (20)
- Move off of apt.dockerproject.org HOT 1
- Jaeger agent setup error
- HTTP Middleware Error Logging: Vision on StatusBadGateway/ServiceUnavailable HOT 2
- error of "github.com/uber/jaeger-lib/metrics/testutils" HOT 1
- Better handle configuring jaeger tracing with thrift http transport HOT 1
- Jaeger is always enabled HOT 1
- Add gzip compression middleware to server
- node_exporter/https moved to exporter-toolkit/web
- Logging: avoid expensive formatting when level is disabled. HOT 1
- Broken grpc.WithBalancerName HOT 5
- Further secure TLS communications HOT 1
- Enable advanced TLS configuration parameters HOT 4
- trace: Migrate to open-telemetry for instrumentation. HOT 4
- Proposal: remove dependency on deprecated gogo/protobuf HOT 1
- `gorilla/mux` is archived HOT 5
- Migrate CircleCI to GitHub Actions HOT 1
- Allow to disable GRPC/HTTP listener HOT 2
- Future of weaveworks/common repo HOT 2
- Weaveworks/common has weak cipher suites for the GRPC server. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from common.