Skip to content

Commit fe7d870

Browse files
committed
update origin for spans
1 parent e488f51 commit fe7d870

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/angular/src/tracing.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
startBrowserTracingNavigationSpan,
1515
} from '@sentry/browser';
1616
import {
17+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
1718
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
1819
getActiveSpan,
1920
getClient,
@@ -208,6 +209,7 @@ export class TraceService implements OnDestroy {
208209
if (transaction && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] === 'url') {
209210
transaction.updateName(route);
210211
transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');
212+
transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, `auto.${spanToJSON(transaction).op}.angular`);
211213
}
212214
}),
213215
);

0 commit comments

Comments
 (0)