Skip to content

Vonage-Community/demo-messages-rails-datadog

Repository files navigation

Logging Vonage API Dat to Datadog in a Ruby on Rails Application

Pre-requisites

To run this demo application, you will need the following:

Running the Demo

  1. Clone the repo: git clone https://github.com/Vonage-Community/demo-messages-rails-datadog.git
  2. cd into the repo directory and run bundle install
  3. Copy or rename .env.dist to .env
  4. In the Vonage Dashboard, create a new application and enable it for the Messages API:
    • Set the the Application ID from that Vonage Application as VONAGE_APPLICATION_ID in the .env file
    • Download the Private Key to the root of the Rails application
  5. In the repo directory, run rails s
  6. In a separate Terminal tab, run ngrok http 3000:
    • Copy the URI generated by Ngrok
    • In the Vonage Application you created, set the Messages Status URL as that URI plus /status, and save the updated settings.
  7. Navigate to localhost:3000 and make some Messages requests be submitting the form. You should see the logs in your Datadog Ruby integration logs.

About

Rails application to demonstrate logging Messages status webhooks to Datadog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published