-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add logger bundle variants #18781
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 logger bundle variants #18781
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import { browserTracingIntegrationShim, replayIntegrationShim } from '@sentry-internal/integration-shims'; | ||
| import { feedbackAsyncIntegration } from './feedbackAsync'; | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| export { logger } from '@sentry/core'; | ||
|
|
||
| export { getFeedback, sendFeedback } from '@sentry-internal/feedback'; | ||
|
|
||
| export { | ||
| browserTracingIntegrationShim as browserTracingIntegration, | ||
| feedbackAsyncIntegration as feedbackAsyncIntegration, | ||
| feedbackAsyncIntegration as feedbackIntegration, | ||
| replayIntegrationShim as replayIntegration, | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { | ||
| browserTracingIntegrationShim, | ||
| feedbackIntegrationShim, | ||
| replayIntegrationShim, | ||
| } from '@sentry-internal/integration-shims'; | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| export { logger } from '@sentry/core'; | ||
|
|
||
| export { | ||
| browserTracingIntegrationShim as browserTracingIntegration, | ||
| feedbackIntegrationShim as feedbackAsyncIntegration, | ||
| feedbackIntegrationShim as feedbackIntegration, | ||
| replayIntegrationShim as replayIntegration, | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { browserTracingIntegrationShim } from '@sentry-internal/integration-shims'; | ||
| import { feedbackAsyncIntegration } from './feedbackAsync'; | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| export { logger } from '@sentry/core'; | ||
|
|
||
| export { getFeedback, sendFeedback } from '@sentry-internal/feedback'; | ||
|
|
||
| export { replayIntegration, getReplay } from '@sentry-internal/replay'; | ||
|
|
||
| export { | ||
| browserTracingIntegrationShim as browserTracingIntegration, | ||
| feedbackAsyncIntegration as feedbackAsyncIntegration, | ||
| feedbackAsyncIntegration as feedbackIntegration, | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { browserTracingIntegrationShim, feedbackIntegrationShim } from '@sentry-internal/integration-shims'; | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| export { logger } from '@sentry/core'; | ||
|
|
||
| export { replayIntegration, getReplay } from '@sentry-internal/replay'; | ||
|
|
||
| export { | ||
| browserTracingIntegrationShim as browserTracingIntegration, | ||
| feedbackIntegrationShim as feedbackAsyncIntegration, | ||
| feedbackIntegrationShim as feedbackIntegration, | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { registerSpanErrorInstrumentation } from '@sentry/core'; | ||
| import { feedbackIntegrationShim, replayIntegrationShim } from '@sentry-internal/integration-shims'; | ||
|
|
||
| registerSpanErrorInstrumentation(); | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| export { | ||
| getActiveSpan, | ||
| getRootSpan, | ||
| startSpan, | ||
| startInactiveSpan, | ||
| startSpanManual, | ||
| startNewTrace, | ||
| withActiveSpan, | ||
| getSpanDescendants, | ||
| setMeasurement, | ||
| logger, | ||
| } from '@sentry/core'; | ||
|
|
||
| export { | ||
| browserTracingIntegration, | ||
| startBrowserTracingNavigationSpan, | ||
| startBrowserTracingPageLoadSpan, | ||
| } from './tracing/browserTracingIntegration'; | ||
| export { reportPageLoaded } from './tracing/reportPageLoaded'; | ||
| export { setActiveSpanInBrowser } from './tracing/setActiveSpan'; | ||
|
|
||
| export { | ||
| feedbackIntegrationShim as feedbackAsyncIntegration, | ||
| feedbackIntegrationShim as feedbackIntegration, | ||
| replayIntegrationShim as replayIntegration, | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import { registerSpanErrorInstrumentation } from '@sentry/core'; | ||
| import { feedbackIntegrationShim } from '@sentry-internal/integration-shims'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The 🔍 Detailed AnalysisThe bundle file 💡 Suggested FixIn 🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
| registerSpanErrorInstrumentation(); | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| export { | ||
| getActiveSpan, | ||
| getRootSpan, | ||
| startSpan, | ||
| startInactiveSpan, | ||
| startSpanManual, | ||
| startNewTrace, | ||
| withActiveSpan, | ||
| getSpanDescendants, | ||
| setMeasurement, | ||
| logger, | ||
| } from '@sentry/core'; | ||
|
|
||
| export { | ||
| browserTracingIntegration, | ||
| startBrowserTracingNavigationSpan, | ||
| startBrowserTracingPageLoadSpan, | ||
| } from './tracing/browserTracingIntegration'; | ||
| export { reportPageLoaded } from './tracing/reportPageLoaded'; | ||
| export { setActiveSpanInBrowser } from './tracing/setActiveSpan'; | ||
|
|
||
| export { getFeedback, sendFeedback } from '@sentry-internal/feedback'; | ||
|
|
||
| export { replayIntegration, getReplay } from '@sentry-internal/replay'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing feedback integration exports in tracing.replay.feedback.logger bundleHigh Severity The |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import { registerSpanErrorInstrumentation } from '@sentry/core'; | ||
| import { feedbackIntegrationShim } from '@sentry-internal/integration-shims'; | ||
|
|
||
| registerSpanErrorInstrumentation(); | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| export { | ||
| getActiveSpan, | ||
| getRootSpan, | ||
| startSpan, | ||
| startInactiveSpan, | ||
| startSpanManual, | ||
| startNewTrace, | ||
| withActiveSpan, | ||
| getSpanDescendants, | ||
| setMeasurement, | ||
| logger, | ||
| } from '@sentry/core'; | ||
|
|
||
| export { | ||
| browserTracingIntegration, | ||
| startBrowserTracingNavigationSpan, | ||
| startBrowserTracingPageLoadSpan, | ||
| } from './tracing/browserTracingIntegration'; | ||
| export { reportPageLoaded } from './tracing/reportPageLoaded'; | ||
| export { setActiveSpanInBrowser } from './tracing/setActiveSpan'; | ||
|
|
||
| export { feedbackIntegrationShim as feedbackAsyncIntegration, feedbackIntegrationShim as feedbackIntegration }; | ||
|
|
||
| export { replayIntegration, getReplay } from '@sentry-internal/replay'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing integration or E2E tests for new feature
Low Severity · BugBot Rules
Per the rules file in the user instructions: "When reviewing a
featPR, check if the PR includes at least one integration or E2E test. If neither of the two are present, add a comment, recommending to add one." This PR adds 7 new logger bundle variants but doesn't include any integration or E2E tests to verify the bundles work correctly and export the expected APIs. Adding tests would help catch issues like the missing feedback integration exports in thetracing.replay.feedback.loggerbundle.