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(profiling): Add a profile data category and count profiles in an envelope to apply rate limits #1259

Merged
merged 4 commits into from
May 9, 2022

Conversation

phacops
Copy link
Contributor

@phacops phacops commented May 3, 2022

This PR aims to add the necessary code to count and apply rate limits to profiles. Right now, we don't want to apply any as we're in beta but we'd like to be ready for when we'd want to rate limit.

Ref #1258

@phacops phacops requested review from jan-auer and a team May 3, 2022 21:18
@phacops phacops changed the title Add a profile data category and count profiles in an envelope to apply rate limits feat(profiling): Add a profile data category and count profiles in an envelope to apply rate limits May 3, 2022
@@ -103,7 +103,7 @@ fn infer_event_category(item: &Item) -> Option<DataCategory> {
ItemType::MetricBuckets => None,
ItemType::FormData => None,
ItemType::UserReport => None,
ItemType::Profile => None,
ItemType::Profile => Some(DataCategory::Profile),
Copy link
Member

Choose a reason for hiding this comment

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

Profiles aren't events, so infer_event_category should not return something here.

relay-server/src/utils/rate_limits.rs Show resolved Hide resolved
Copy link
Member

@jan-auer jan-auer left a comment

Choose a reason for hiding this comment

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

Good to go, thank you!

relay-server/src/utils/rate_limits.rs Show resolved Hide resolved
@jan-auer
Copy link
Member

jan-auer commented May 9, 2022

Final ask, when you patch up the changelog, could you please also drop the same line in py/CHANGELOG.md?

@phacops phacops enabled auto-merge (squash) May 9, 2022 19:11
@phacops phacops force-pushed the pierre/profiling-data-category branch from ea63f1b to 64b4469 Compare May 9, 2022 19:14
@phacops phacops disabled auto-merge May 9, 2022 19:18
@phacops phacops merged commit b2ae9ce into master May 9, 2022
@phacops phacops deleted the pierre/profiling-data-category branch May 9, 2022 20:58
jan-auer added a commit that referenced this pull request May 13, 2022
* master:
  feat(sampling): Support custom tags and more contexts (#1268)
  deps: Update symbolic to pull in Unreal parser fixes (#1266)
  Bring in CLA Lite (#1257)
  release: 0.8.11
  ref(profiling): Normalize all profiles (#1250)
  feat(profiling): Add a profile data category and count profiles in an envelope to apply rate limits (#1259)
  fix: Raise a new InvalidCompression Outcome for invalid Unreal compression (#1237)
  chore: Update logo for dark or light theme (#1262)
  ref: Use Duration to compute breakdowns and span durations (#1260)
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