stathat / go Goto Github PK
View Code? Open in Web Editor NEWGo package for reporting stat counts and values to StatHat
License: MIT License
Go package for reporting stat counts and values to StatHat
License: MIT License
An implementation of Reporter
that just discards stats would be useful in a number of situations. I'd be happy to submit a PR if it would be accepted.
Followed example exactly - go pgm cannot post ?
2016/04/09 07:49:04 error posting stat to stathat: Post https://api.stathat.com/ez: x509: certificate is valid for Common Name (eg, YOUR name), not api.stathat.com
2016/04/09 07:49:04 error posting stat to stathat: Post https://api.stathat.com/ez: x509: certificate is valid for Common Name (eg, YOUR name), not api.stathat.com
Hi i was testing out stathat with my go server... when i run a load tester i get the following error
error posting stat to stathat: Post http://api.stathat.com/ez: dial tcp 23.23.135.247:80: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Is there a certain threshold that the stathat can receive? or is it just a problem of the library?
It's not possible to monitor if there are any issues with StatHat metrics, errors are not returned from Http send
E.g.:
func (r *BasicReporter) PostEZCount(statName, ezkey string, count int) error {
r.add(newEZStatCount(statName, ezkey, count))
return nil
}
Need some way to get a handle \ metric on HTTP send errors
On App Engine, we have to use the context http client they offer in order to make external requests (https://developers.google.com/appengine/docs/go/urlfetch/), so if I can pass an *http.Client
in rather than just a transport to NewReporter, that solves the problem.
I noticed your API supports posting multiple stats in one HTTP call. Are there plans to update this library to batch up stat calls into one HTTP call as well?
Just curious...if not I can hit the API directly to accomplish this.
Thanks in advance!
I'm just seeing a ton of individual requests, is there any batching? or would you accept a PR?
cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.