File tree 2 files changed +4
-8
lines changed
packages/apm/src/integrations
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 11
11
- [ gatsby] feat: Add @sentry/gatsby package (#2652 )
12
12
- [ core] ref: Rename ` whitelistUrls/blacklistUrls ` to ` allowUrls/denyUrls `
13
13
- [ react] ref: Refactor Profiler to account for update and render (#2677 )
14
+ - [ tracing] feat: Add ability to get span from activity using ` getActivitySpan ` (#2677 )
14
15
15
16
## 5.17.0
16
17
Original file line number Diff line number Diff line change @@ -879,14 +879,9 @@ export class Tracing implements Integration {
879
879
if ( ! id ) {
880
880
return undefined ;
881
881
}
882
- if ( Tracing . _getCurrentHub ) {
883
- const hub = Tracing . _getCurrentHub ( ) ;
884
- if ( hub ) {
885
- const activity = Tracing . _activities [ id ] ;
886
- if ( activity ) {
887
- return activity . span ;
888
- }
889
- }
882
+ const activity = Tracing . _activities [ id ] ;
883
+ if ( activity ) {
884
+ return activity . span ;
890
885
}
891
886
return undefined ;
892
887
}
You can’t perform that action at this time.
0 commit comments