Skip to content

Commit

Permalink
update origin for spans
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Jan 31, 2024
1 parent f6f70ba commit 2945320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/angular/src/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
startBrowserTracingNavigationSpan,
} from '@sentry/browser';
import {
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
getActiveSpan,
getClient,
Expand Down Expand Up @@ -208,6 +209,7 @@ export class TraceService implements OnDestroy {
if (transaction && attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] === 'url') {
transaction.updateName(route);
transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'route');
transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, `auto.${spanToJSON(transaction).op}.angular`);
}
}),
);
Expand Down

0 comments on commit 2945320

Please sign in to comment.