Skip to content

Commit

Permalink
fix(metrics): use correct statsd data category (#11187)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Mar 19, 2024
1 parent 47a3cc7 commit 17a0e0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions packages/types/src/datacategory.ts
Expand Up @@ -26,7 +26,9 @@ export type DataCategory =
| 'monitor'
// Feedback type event (v2)
| 'feedback'
// Unknown data category
| 'unknown'
// Statsd type event for metrics
| 'statsd'
// Span
| 'span';
| 'span'
// Unknown data category
| 'unknown';
3 changes: 1 addition & 2 deletions packages/utils/src/envelope.ts
Expand Up @@ -210,8 +210,7 @@ const ITEM_TYPE_TO_DATA_CATEGORY_MAP: Record<EnvelopeItemType, DataCategory> = {
check_in: 'monitor',
feedback: 'feedback',
span: 'span',
// 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 17a0e0f

Please sign in to comment.