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 profiler id column to transactions (#6099) #6103

Merged

Conversation

Zylphrex
Copy link
Member

Re-applying #6099.

For continuous profiling, the profile context will contain a new value profiler_id, not to be confused with profile_id. A profiler_id is set on the transaction's profile context when the continuous profiler is enabled. This is a separate value from the existing profile_id because we need to be able to distinguish if the transaction is associated with a transaction based profile or a continuous profile and load the profile from the correct place.

Re-applying #6099.

For continuous profiling, the profile context will contain a new value
`profiler_id`, not to be confused with `profile_id`. A `profiler_id` is set on
the transaction's profile context when the continuous profiler is enabled. This
is a separate value from the existing `profile_id` because we need to be able to
distinguish if the transaction is associated with a transaction based profile or
a continuous profile and load the profile from the correct place.
@Zylphrex Zylphrex requested a review from a team as a code owner July 15, 2024 14:29
Copy link

This PR has a migration; here is the generated SQL

-- start migrations

-- forward migration transactions : 0023_add_profiler_id_column
Local op: ALTER TABLE transactions_local ADD COLUMN IF NOT EXISTS profiler_id Nullable(UUID) AFTER profile_id;
Distributed op: ALTER TABLE transactions_dist ADD COLUMN IF NOT EXISTS profiler_id Nullable(UUID) AFTER profile_id;
-- end forward migration transactions : 0023_add_profiler_id_column




-- backward migration transactions : 0023_add_profiler_id_column
Distributed op: ALTER TABLE transactions_dist DROP COLUMN IF EXISTS profiler_id;
Local op: ALTER TABLE transactions_local DROP COLUMN IF EXISTS profiler_id;
-- end backward migration transactions : 0023_add_profiler_id_column

@Zylphrex Zylphrex merged commit de721f9 into master Jul 15, 2024
29 checks passed
@Zylphrex Zylphrex deleted the txiao/feat/add-profiler-id-column-to-transactions-2 branch July 15, 2024 19:36
Zylphrex added a commit that referenced this pull request Jul 16, 2024
Follow up to #6103 to begin writing the profiler_id value to the transactions
table.
Zylphrex added a commit that referenced this pull request Jul 18, 2024
Follow up to #6103 to begin writing the profiler_id value to the transactions
table.
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.

2 participants