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

feat: add OTP metrics and logging #1904

Merged
merged 2 commits into from
Aug 4, 2022
Merged

Conversation

halfwhole
Copy link
Collaborator

Problem

We'd like to have custom metrics to count the number of OTP successes/failures, and log down both success and failure cases as well

Notion issue here

Solution

Added utility to collect custom Datadog metrics for Go

  • Added statsd from hot-shots for custom metrics collection (as per the Datadog documentation)
  • Added the prefix go. to our custom metrics, to differentiate them from other teams' metrics

Added logging for OTP successes/failures and two custom metrics, go.otp.success and go.otp.failure

Tests

  • Tested on staging, these OTP metrics show up as expected on Datadog's metrics explorer

Deploy Notes

New dependencies:

  • hot-shots : client to collect and send custom metrics to Datadog

Copy link
Member

@yong-jie yong-jie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@yong-jie yong-jie merged commit 7f5290b into develop Aug 4, 2022
@yong-jie yong-jie deleted the feat/otp-metrics-logging branch August 4, 2022 06:00
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

Successfully merging this pull request may close these issues.

2 participants