@sentry/react
Advanced tools
Comparing version 8.0.0-beta.5 to 8.0.0-beta.6
@@ -209,10 +209,11 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const activeRootSpan = getActiveRootSpan(); | ||
const WrappedRoute = (props) => { | ||
if (props && props.computedMatch && props.computedMatch.isExact) { | ||
core.getCurrentScope().setTransactionName(props.computedMatch.path); | ||
const route = props.computedMatch.path; | ||
const activeRootSpan = getActiveRootSpan(); | ||
core.getCurrentScope().setTransactionName(route); | ||
if (activeRootSpan) { | ||
activeRootSpan.updateName(props.computedMatch.path); | ||
activeRootSpan.updateName(route); | ||
activeRootSpan.setAttribute(core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route'); | ||
@@ -225,3 +226,3 @@ } | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164 | ||
return React__namespace.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 242}} ); | ||
return React__namespace.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 243}} ); | ||
}; | ||
@@ -228,0 +229,0 @@ |
import { browserTracingIntegration, startBrowserTracingPageLoadSpan, startBrowserTracingNavigationSpan, WINDOW } from '@sentry/browser'; | ||
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getActiveSpan, getRootSpan, spanToJSON, getCurrentScope } from '@sentry/core'; | ||
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getCurrentScope, getActiveSpan, getRootSpan, spanToJSON } from '@sentry/core'; | ||
import hoistNonReactStatics from 'hoist-non-react-statics'; | ||
@@ -190,10 +190,11 @@ import * as React from 'react'; | ||
const activeRootSpan = getActiveRootSpan(); | ||
const WrappedRoute = (props) => { | ||
if (props && props.computedMatch && props.computedMatch.isExact) { | ||
getCurrentScope().setTransactionName(props.computedMatch.path); | ||
const route = props.computedMatch.path; | ||
const activeRootSpan = getActiveRootSpan(); | ||
getCurrentScope().setTransactionName(route); | ||
if (activeRootSpan) { | ||
activeRootSpan.updateName(props.computedMatch.path); | ||
activeRootSpan.updateName(route); | ||
activeRootSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route'); | ||
@@ -206,3 +207,3 @@ } | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/13dc4235c069e25fe7ee16e11f529d909f9f3ff8/types/react-router/index.d.ts#L154-L164 | ||
return React.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 242}} ); | ||
return React.createElement(Route, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 243}} ); | ||
}; | ||
@@ -209,0 +210,0 @@ |
{ | ||
"name": "@sentry/react", | ||
"version": "8.0.0-beta.5", | ||
"version": "8.0.0-beta.6", | ||
"description": "Official Sentry SDK for React.js", | ||
@@ -45,6 +45,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "8.0.0-beta.5", | ||
"@sentry/core": "8.0.0-beta.5", | ||
"@sentry/types": "8.0.0-beta.5", | ||
"@sentry/utils": "8.0.0-beta.5", | ||
"@sentry/browser": "8.0.0-beta.6", | ||
"@sentry/core": "8.0.0-beta.6", | ||
"@sentry/types": "8.0.0-beta.6", | ||
"@sentry/utils": "8.0.0-beta.6", | ||
"hoist-non-react-statics": "^3.3.2" | ||
@@ -51,0 +51,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
308694
3130
+ Added@sentry-internal/browser-utils@8.0.0-beta.6(transitive)
+ Added@sentry-internal/feedback@8.0.0-beta.6(transitive)
+ Added@sentry-internal/replay@8.0.0-beta.6(transitive)
+ Added@sentry-internal/replay-canvas@8.0.0-beta.6(transitive)
+ Added@sentry/browser@8.0.0-beta.6(transitive)
+ Added@sentry/core@8.0.0-beta.6(transitive)
+ Added@sentry/types@8.0.0-beta.6(transitive)
+ Added@sentry/utils@8.0.0-beta.6(transitive)
- Removed@sentry-internal/browser-utils@8.0.0-beta.5(transitive)
- Removed@sentry-internal/feedback@8.0.0-beta.5(transitive)
- Removed@sentry-internal/replay@8.0.0-beta.5(transitive)
- Removed@sentry-internal/replay-canvas@8.0.0-beta.5(transitive)
- Removed@sentry/browser@8.0.0-beta.5(transitive)
- Removed@sentry/core@8.0.0-beta.5(transitive)
- Removed@sentry/types@8.0.0-beta.5(transitive)
- Removed@sentry/utils@8.0.0-beta.5(transitive)
Updated@sentry/browser@8.0.0-beta.6
Updated@sentry/core@8.0.0-beta.6
Updated@sentry/types@8.0.0-beta.6
Updated@sentry/utils@8.0.0-beta.6