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(metrics): [NAN-664] track more usage metrics in datadog #2136

Merged
merged 8 commits into from
May 10, 2024

Conversation

khaliqgant
Copy link
Member

Describe your changes

Add additional metric tracking

Issue ticket number and link

NAN-664

Checklist before requesting a review (skip if just adding/editing APIs & templates)

  • I added tests, otherwise the reason is:
  • I added observability, otherwise the reason is:
  • I added analytics, otherwise the reason is:

Copy link

linear bot commented May 10, 2024

@@ -1,41 +1,45 @@
import tracer from 'dd-trace';

export enum Types {
Copy link
Member Author

Choose a reason for hiding this comment

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

alphabetize


const action = LogActionEnum.TOKEN;

if (!isSync) {
metrics.increment(metrics.Types.GET_CONNECTION, 1, { accountId });
Copy link
Collaborator

Choose a reason for hiding this comment

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

does that create a metric per account? If yes are we ok about the cost increase? cc @bastienbeurier
Same question about the other ones below

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. The description of the task states:

Because we pay per number of metrics, we should track 0-1 dimensions for each metric. I would only track accountID.

Copy link
Contributor

@bodinsamuel bodinsamuel left a comment

Choose a reason for hiding this comment

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

Looks good, same comment as @TBonnin

@khaliqgant khaliqgant merged commit 09ee173 into master May 10, 2024
19 checks passed
@khaliqgant khaliqgant deleted the khaliq/nan-664-track-more-usage-metrics-in-datadog branch May 10, 2024 16:07
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.

None yet

3 participants