-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(browser): Add CDN bundle for tracing.replay.feedback.logs.metrics
#18785
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
Merged
chargome
merged 17 commits into
develop
from
cg/JS-1443/add-tracingreplayfeedbacklogsmetrics-bundle
Jan 16, 2026
+80
−0
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d836ff0
add cdn bundle for tracing.logs.metrics
chargome 413346b
add tracing.replay.feedback.logs.metrics
chargome 2597209
.
chargome d2ce4c4
format
chargome 0b85077
adapt limits
chargome f71ae13
add integration tests
chargome d39bd4b
update helper
chargome 12c0651
Merge branch 'cg/JS-452/support-sentry-logging-in-the-js-loader-and-c…
chargome d5345a0
add tests
chargome 942787f
format
chargome 577dc37
Merge branch 'develop' into cg/JS-1443/add-tracingreplayfeedbacklogsm…
chargome 994159b
Merge branch 'develop' into cg/JS-1443/add-tracingreplayfeedbacklogsm…
chargome 4d8419b
update ci
chargome 4ca13de
fix size limits
chargome 0cafa57
rm duplicate entry
chargome 383a3b5
.
chargome 81bb2c0
Merge branch 'develop' into cg/JS-1443/add-tracingreplayfeedbacklogsm…
chargome File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
35 changes: 35 additions & 0 deletions
35
packages/browser/src/index.bundle.tracing.replay.feedback.logs.metrics.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| import { registerSpanErrorInstrumentation } from '@sentry/core'; | ||
| import { feedbackAsyncIntegration } from './feedbackAsync'; | ||
|
|
||
| registerSpanErrorInstrumentation(); | ||
|
|
||
| export * from './index.bundle.base'; | ||
|
|
||
| // TODO(v11): Export metrics here once we remove it from the base bundle. | ||
| export { | ||
| getActiveSpan, | ||
| getRootSpan, | ||
| getSpanDescendants, | ||
| setMeasurement, | ||
| startInactiveSpan, | ||
| startNewTrace, | ||
| startSpan, | ||
| startSpanManual, | ||
| withActiveSpan, | ||
| logger, | ||
| consoleLoggingIntegration, | ||
| } 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 { feedbackAsyncIntegration as feedbackAsyncIntegration, feedbackAsyncIntegration as feedbackIntegration }; | ||
|
|
||
| export { replayIntegration, getReplay } from '@sentry-internal/replay'; |
16 changes: 16 additions & 0 deletions
16
packages/browser/test/index.bundle.tracing.replay.feedback.logs.metrics.test.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { logger as coreLogger, metrics as coreMetrics } from '@sentry/core'; | ||
| import { describe, expect, it } from 'vitest'; | ||
| import { browserTracingIntegration, feedbackAsyncIntegration, replayIntegration } from '../src'; | ||
| import * as TracingReplayFeedbackLogsMetricsBundle from '../src/index.bundle.tracing.replay.feedback.logs.metrics'; | ||
|
|
||
| describe('index.bundle.tracing.replay.feedback.logs.metrics', () => { | ||
| it('has correct exports', () => { | ||
| expect(TracingReplayFeedbackLogsMetricsBundle.browserTracingIntegration).toBe(browserTracingIntegration); | ||
| expect(TracingReplayFeedbackLogsMetricsBundle.feedbackAsyncIntegration).toBe(feedbackAsyncIntegration); | ||
| expect(TracingReplayFeedbackLogsMetricsBundle.feedbackIntegration).toBe(feedbackAsyncIntegration); | ||
| expect(TracingReplayFeedbackLogsMetricsBundle.replayIntegration).toBe(replayIntegration); | ||
|
|
||
| expect(TracingReplayFeedbackLogsMetricsBundle.logger).toBe(coreLogger); | ||
| expect(TracingReplayFeedbackLogsMetricsBundle.metrics).toBe(coreMetrics); | ||
| }); | ||
| }); |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.