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_id column to merged discover table #5777

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

JoshFerge
Copy link
Member

we want to be able to query this field in discover. it exists on both errors and transactions.

@JoshFerge JoshFerge requested a review from a team as a code owner April 15, 2024 22:30
@JoshFerge JoshFerge requested a review from a team April 15, 2024 22:30
Copy link

This PR has a migration; here is the generated SQL

-- start migrations

-- forward migration discover : 0008_discover_add_replay_id
Local op: ALTER TABLE discover_local ADD COLUMN IF NOT EXISTS replay_id Nullable(UUID) AFTER span_id;
Distributed op: ALTER TABLE discover_dist ADD COLUMN IF NOT EXISTS replay_id Nullable(UUID) AFTER span_id;
-- end forward migration discover : 0008_discover_add_replay_id




-- backward migration discover : 0008_discover_add_replay_id
Distributed op: ALTER TABLE discover_dist DROP COLUMN IF EXISTS replay_id;
Local op: ALTER TABLE discover_local DROP COLUMN IF EXISTS replay_id;
-- end backward migration discover : 0008_discover_add_replay_id

Copy link

codecov bot commented Apr 15, 2024

Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.

❌ Failed Test Results:

Completed 1104 tests with 1 failed, 1101 passed and 2 skipped.

View the full list of failed tests
Test Description Failure message
Testsuite:
pytest
Test name:
tests.migrations.test_legacy_use::test_legacy_use
Envs:
- default
Traceback (most recent call last):
File ".../tests/migrations/test_legacy_use.py", line 43, in test_legacy_use
pytest.fail(
File ".../local/lib/python3.11.../site-packages/_pytest/outcomes.py", line 196, in fail
raise Failed(msg=reason, pytrace=pytrace)
Failed: Migration 0008_discover_add_replay_id in group MigrationGroup.DISCOVER is using legacy types

@JoshFerge JoshFerge merged commit 55d2efc into master Apr 16, 2024
30 checks passed
@JoshFerge JoshFerge deleted the jferg/add-replay-id-column branch April 16, 2024 17:00
@getsentry-bot
Copy link
Contributor

PR reverted: 2f1509f

getsentry-bot added a commit that referenced this pull request Apr 16, 2024
…5777)"

This reverts commit 55d2efc.

Co-authored-by: dbanda <1960911+dbanda@users.noreply.github.com>
JoshFerge added a commit to getsentry/sentry that referenced this pull request Apr 22, 2024
We want to have the replay_id column be queried on instead of the tag
that we previously had, as we no longer are populating the tag for non
javascript platforms. Depends on
getsentry/snuba#5777.
MichaelSun48 pushed a commit to getsentry/sentry that referenced this pull request Apr 25, 2024
We want to have the replay_id column be queried on instead of the tag
that we previously had, as we no longer are populating the tag for non
javascript platforms. Depends on
getsentry/snuba#5777.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants