Skip to content

Commit

Permalink
fix(metrics): use correct statsd data category (getsentry#11184)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad authored and cadesalaberry committed Apr 19, 2024
1 parent 2d16d19 commit 7794d65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/types/src/datacategory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ export type DataCategory =
| 'monitor'
// Feedback type event (v2)
| 'feedback'
// Statsd type event for metrics
| 'statsd'
// Unknown data category
| 'unknown';
3 changes: 1 addition & 2 deletions packages/utils/src/envelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ const ITEM_TYPE_TO_DATA_CATEGORY_MAP: Record<EnvelopeItemType, DataCategory> = {
replay_recording: 'replay',
check_in: 'monitor',
feedback: 'feedback',
// TODO: This is a temporary workaround until we have a proper data category for metrics
statsd: 'unknown',
statsd: 'statsd',
};

/**
Expand Down

0 comments on commit 7794d65

Please sign in to comment.