You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stackflow has a unique screen handling with "Activity."
Currently, Sentry doesn't support tracing for this mechanism,
So we had to create own plugin.
This pr contains a basic functional plugin that works for:
Tracing page load events
Tracing activity changes (push, pop, replace)
How I Tested It:
Test with demo project working on localhost, personal sentry account
Load built package from local file path
// demo/.../Stack.tsximport*asSentryfrom"@sentry/browser";import{sentryPlugin}from"../../../extensions/plugin-sentry/dist";exportconst{ Stack, actions }=stackflow({
config,components: {
Main,
Article,},plugins: [sentryPlugin({dsn: "https://example-dsn-key",integrations: [Sentry.replayIntegration()],// TracingtracesSampleRate: 1.0,// Capture 100% of the transactions// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabledtracePropagationTargets: ["localhost"],// Session ReplayreplaysSessionSampleRate: 0.1,// This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.replaysOnErrorSampleRate: 1.0,// If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.}),],});
Screen shots & additional explanation
Performance
Recorded transactions can be viewed under the Performance tab.
Both Page Load and Activity Changes (navigation events) are successfully recorded.
Error Tracing
This plugin integrates seamlessly with other tools (e.g., Replay Integration).
It traces user actions within transactions, providing more context for debugging.
Note
I'm not sure if this is the 'desired' behavior, so I would appreciate any feedback.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Hello @ysh4296! It's the end of the year and we're currently busy with other work, so the review is delayed. I think it will be possible early next year, so please keep that in mind.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
plugin-sentry (Issue from #520)
Stackflow has a unique screen handling with "Activity."
Currently, Sentry doesn't support tracing for this mechanism,
So we had to create own plugin.
This pr contains a basic functional plugin that works for:
How I Tested It:
Screen shots & additional explanation
Performance
Error Tracing
Note
I'm not sure if this is the 'desired' behavior, so I would appreciate any feedback.