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

chore(performance): sentry performance updates #11212

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

brainbicycle
Copy link
Contributor

This PR resolves []

Description

Some follow-ups now that our navigation is not quite as weird!

  • removes custom nav instrumentation that is no longer necessary
  • wrap app if debugging sentry
  • try out sentry profiling on the search screen

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

  • update sentry perf monitoring - brian

Need help with something? Have a look at our docs, or get in touch with us.

context.sampled = false
}
return context
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was there to make names in perf dashboard more reasonable, but no longer necessary since nav refactor!

import { appJson } from "app/utils/jsonFiles"
import { Platform } from "react-native"
import Config from "react-native-config"
import DeviceInfo from "react-native-device-info"

export const routingInstrumentation = new Sentry.ReactNavigationInstrumentation({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

deprecated

@@ -214,6 +215,8 @@ export const SearchScreen: React.FC<SearchScreenProps> = () => {
)
}

export const SearchScreen = withProfiler(SearchScreenInner, { name: "Search" })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we can use this to get more in depth flamegraph style profiles of a given screen: https://artsynet.sentry.io/profiling/profile/eigen/a7bb035f850d44f7a9dc1f2a5274e3c7/flamegraph/?colorCoding=by%20system%20vs%20application%20frame&fov=0%2C0%2C2658378240%2C31&query=&sorting=call%20order&tid=4048240&view=top%20down
hoping it will be cleaner with a real build with sourcemaps but let's see

@ArtsyOpenSource
Copy link
Contributor

This PR contains the following changes:

  • Dev changes (update sentry perf monitoring - brian - brainbicycle)

Generated by 🚫 dangerJS against 2901b79

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