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

[HELP] Bootstrapping instructions #11

Closed
tuomohopia opened this issue Feb 16, 2020 · 2 comments
Closed

[HELP] Bootstrapping instructions #11

tuomohopia opened this issue Feb 16, 2020 · 2 comments

Comments

@tuomohopia
Copy link

tuomohopia commented Feb 16, 2020

I don't know if this is the right place to ask for help. This library seems very well maintained so I'd like to start using it but clueless on how.

  • Am I supposed to open one new client upon starting up my app with createStatsClient and keep it open, giving it to send or sendEvt everytime I want to instrument an event?
  • Does this library somehow rely on datadog package? I see withDogStatsD function invoked in the examples in the module Arbor.Network.StatsD.Datadog. Would I need datadog package as well to actually use this?

For context, I'm trying to instrument a Servant application, most importantly instrumenting the response times of the endpoints as well as the database calls. I'm deploying to Heroku.

I'll be happy to post my questions on Stackoverflow or elsewhere if it's inappropriate here.

@newhoggy
Copy link
Collaborator

This library is a fork of the datadog package.

Although it can be used directly as you describe, it is meant to be used as a backend for arbor-monad-metric.

An example of usage can be found here:

https://github.com/arbor/arbor-monad-metric-datadog/tree/master/test/Arbor/Monad/Datadog

You will need the following packages:

  • arbor-monad-metric
  • arbor-monad-metric-datadog
  • arbor-datadog

@tuomohopia
Copy link
Author

Thanks! I'll study the example to bolt it to my Servant app.

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

2 participants