twitter-server | Twitter-Server defines a template from which services
kandi X-RAY | twitter-server Summary
kandi X-RAY | twitter-server Summary
TwitterServer defines a template from which servers at Twitter are built. It provides common application components such as an administrative HTTP server, tracing, stats, etc. These features are wired in correctly for use in production at Twitter.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of twitter-server
twitter-server Key Features
twitter-server Examples and Code Snippets
Community Discussions
Trending Discussions on twitter-server
QUESTION
I'm trying to run a simple TwitterServer with implementation from https://twitter.github.io/twitter-server/Features.html
After several requests to the http://localhost:9990/echo
I haven't see any metric in http://localhost:9990/admin/metrics
. After debugging I found that the actual StatsReceiver
is NullStatsReceiver
. I haven't found any mentioning of StatsReceiver
configuration in a documentation.
So how can I change the default NullStatsReceiver
?
ANSWER
Answered 2017-Apr-24 at 08:00I guess I've found the solution.
Firstly it's needed to add finagle-stats
dependency. I've used v6.43.0
.
Secondly it's needed to define the counter as
val counter =
MetricsStatsReceiver.defaultRegistry.createCounter("requests_counter")
.
Then it will works as expected.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install twitter-server
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page