Skip to content

TypeError: Sentry.thirdPartyErrorFilterIntegration is not a function #13297

Closed
getsentry/sentry-docs
#11053
@hamiltonskraba

Description

@hamiltonskraba

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

Sentry Browser Loader

SDK Version

8.x.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

			// Configure sentryOnLoad before adding the Loader Script
			window.sentryOnLoad = function() {
					Sentry.init({
							dsn: '{{ config('sentry-browser.public_dsn') }}',
							environment: {!! json_encode(App::environment()) !!},
							integrations: [
									Sentry.captureConsoleIntegration({
											levels: ['warn', 'error']
									}),
									Sentry.thirdPartyErrorFilterIntegration({
											filterKeys: ['am-web-filter-key'],
											behaviour: 'apply-tag-if-contains-third-party-frames',
									}),
							],
							beforeSend(event) {
									if (!event?.message) return event;

									const isIgnoredMessage = consoleIgnores.some(ignore => event
											.message.includes(ignore));

									return isIgnoredMessage ? null : event;
							},
							denyUrls: [
									//redacted
							],
							ignoreErrors: [
									//redacted
							],
					});

					Sentry.lazyLoadIntegration("captureConsoleIntegration").then(
							(integration) => {
									Sentry.addIntegration(integration());
							},
					);
			};
	</script>

Steps to Reproduce

  • Updated script loader in web app to 8.x.0
  • Included thirdPartyErrorFilterIntegration config
  • Ensured app key defined in vite config

Expected Result

thirdPartyErrorFilterIntegration should work

Actual Result

browser console errors: Sentry.thirdPartyErrorFilterIntegration is not a function

Contacted support; they informed me that the bundle containing the feature hasn't been created yet and suggested creating a ticket here

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions