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

Add support custom file prefix block #94

Merged
merged 4 commits into from
Oct 18, 2023

Conversation

manuelfelipe
Copy link
Member

Move default file prefix behaviour out into a default block and allow for gem consumers to provide a custom block via AppProfiler.profile_file_prefix.

We need this as internally, we use the file name of exported profiles as last-resort metadata source, and the current behaviour of using timezone time is not machine friendly.

@manuelfelipe manuelfelipe force-pushed the add-support-custom-file-prefix branch from e222fb7 to 8af2aac Compare October 16, 2023 14:42
Copy link
Member

@dalehamel dalehamel left a comment

Choose a reason for hiding this comment

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

Approach looks good to me, but I'd appreciate a review from someone who is more of a ruby/rails-ist than I am.

@manuelfelipe
Copy link
Member Author

but I'd appreciate a review from someone who is more of a ruby/rails-ist than I am.

Same for me.

Added @gmcgibbon for review. Would you mind taking a look to this when you have some time 🙏 ?

test/app_profiler/profile_test.rb Outdated Show resolved Hide resolved
lib/app_profiler.rb Show resolved Hide resolved
@manuelfelipe manuelfelipe force-pushed the add-support-custom-file-prefix branch from 0c23273 to d28db96 Compare October 18, 2023 13:38
@manuelfelipe
Copy link
Member Author

^ force-push due to rebase and conflict resolution in changelog.

added changes from @bmansoob in #95

@manuelfelipe manuelfelipe merged commit c1fd4be into main Oct 18, 2023
5 checks passed
@shopify-shipit shopify-shipit bot temporarily deployed to production October 18, 2023 16:51 Inactive
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.

3 participants