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
Adds the ModuleMetadata integration that fetches metadata injected via bundler plugins and attaches is to the module_metadata property of every StackFrame.
This can later be used in beforeSend or another integration to route events depending on the metadata.
This integration is
Exported separately from @sentry/core (ie. not in Integrations) so it doesn't get included in default bundles
Exported separately from @sentry/browser so that it can be used without depending directly on core
Uses the beforeEnvelope hook to strip the module_metadata property from stack frames
Adds a test to ensure module_metadata is available in beforeSend and is stripped before sending
Problem:
I am currently using moduleMetadata in my project. However, I have observed that when using both Vite and Webpack simultaneously, the moduleMetadata property seems to be ineffective. I am wondering if this is a lack of support for such a configuration.
Expected Behavior:
I expected the moduleMetadata property to work as intended even when using both Vite and Webpack in my project.
Steps to Reproduce:
Use moduleMetadata in a project.
Set up the project to use both Vite and Webpack concurrently.
Observe the behavior of the moduleMetadata property.
Current Behavior:
The moduleMetadata property does not seem to have any effect when both Vite and Webpack are in use.
Note:
If the lack of support is intentional, it would be helpful to mention it in the documentation to prevent others from attempting similar configurations unknowingly.
@0131LWG Please open a new issue with concrete reproduction steps. You current description is not specific enough for us to reproduce. Thanks!
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.
This PR:
ModuleMetadataintegration that fetches metadata injected via bundler plugins and attaches is to themodule_metadataproperty of everyStackFrame.beforeSendor another integration to route events depending on the metadata.@sentry/core(ie. not inIntegrations) so it doesn't get included in default bundles@sentry/browserso that it can be used without depending directly on corebeforeEnvelopehook to strip themodule_metadataproperty from stack framesmodule_metadatais available inbeforeSendand is stripped before sending