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(replays): add replay events ItemType #1239

Merged
merged 36 commits into from
Jun 17, 2022

Conversation

JoshFerge
Copy link
Member

@JoshFerge JoshFerge commented Apr 22, 2022

  • Creates new ItemTypeReplayEvent

See spec here for more information:
https://www.notion.so/sentry/Session-Replay-V1-alpha-Ingest-Backend-ae068d1e1d514221b6c3ea2233f360f4


By submitting this pull request, I confirm that Sentry can use, modify, copy, and redistribute this contribution, under Sentry's choice of terms.

@JoshFerge JoshFerge changed the title feat(replays): add replay events itemtype feat(replays): add replay events ItemType Apr 22, 2022
@JoshFerge JoshFerge requested a review from a team April 22, 2022 22:14
@JoshFerge JoshFerge force-pushed the jferg/replay-events-itemtype branch 5 times, most recently from e650814 to 1b36c57 Compare April 23, 2022 00:55
relay-general/src/store/normalize.rs Outdated Show resolved Hide resolved
relay-common/src/constants.rs Outdated Show resolved Hide resolved
@jan-auer
Copy link
Member

Let's please hold back on this until we've determined whether we're gonna send transaction events, a new event type, or a new payload type alltogether.

@JoshFerge JoshFerge force-pushed the jferg/replay-events-itemtype branch from 807d067 to 3d0d2ea Compare April 27, 2022 17:25
@JoshFerge JoshFerge marked this pull request as ready for review May 2, 2022 17:54
@JoshFerge JoshFerge requested a review from a team May 2, 2022 17:54
@untitaker untitaker mentioned this pull request May 3, 2022
from sentry_sdk.envelope import Envelope


def generate_replay_event():
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: add a test for sending a replay event and replay recording in the same payload

JoshFerge and others added 3 commits June 6, 2022 16:54
* master:
  ref(metrics): Stop logging relative bucket size (#1302)
  fix(metrics): Rename misnamed aggregator option (#1298)
  fix(server): Avoid a panic in the Sentry middleware (#1301)
  build: Update dependencies with known vulnerabilities (#1294)
  fix(metrics): Stop logging statsd metric per project key (#1295)
  feat(metrics): Limits on bucketing cost in aggregator [INGEST-1132] (#1287)
  fix(metrics): Track memory footprint more accurately (#1288)
  build(deps): Bump dependencies (#1293)
  feat(aws): Add relay-aws-extension crate which implements AWS extension as an actor (#1277)
  fix(meta): Update codeowners for the release actions (#1286)
  feat(metrics): Track memory footprint of metrics buckets (#1284)
CHANGELOG.md Outdated Show resolved Hide resolved
relay-common/src/constants.rs Outdated Show resolved Hide resolved
@@ -109,6 +109,8 @@ pub enum DataCategory {
Session = 5,
/// A profile
Profile = 6,
/// Replay Events
ReplayEvent = 7,
Copy link
Member

Choose a reason for hiding this comment

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

Note: When moving this live, please ask someone in @getsentry/owners-ingest to issue a new library release of relay so we can add this new data category to Sentry and Snuba.

This will require to regenerate the CABI headers once the name of the enum variant and value are final (see this PR):

  1. Run cargo install cbindgen on your machine
  2. Go to the relay-cabi subfolder
  3. Run make header
  4. Commit the result into this PR

Copy link
Member Author

Choose a reason for hiding this comment

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

will do 👍🏼

relay-server/src/actors/project.rs Outdated Show resolved Hide resolved
relay-server/src/actors/store.rs Show resolved Hide resolved
relay-server/src/actors/store.rs Outdated Show resolved Hide resolved
relay-server/src/envelope.rs Outdated Show resolved Hide resolved
Base automatically changed from jferg/replay-recordings to master June 13, 2022 16:24
@JoshFerge JoshFerge merged commit f353ed4 into master Jun 17, 2022
@JoshFerge JoshFerge deleted the jferg/replay-events-itemtype branch June 17, 2022 16:13
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.

4 participants