Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SentryTraced() decorator to get spans for arbitrary functions #12752

Closed
Tracked by #12504
nicohrubec opened this issue Jul 4, 2024 · 0 comments · Fixed by #12721
Closed
Tracked by #12504

SentryTraced() decorator to get spans for arbitrary functions #12752

nicohrubec opened this issue Jul 4, 2024 · 0 comments · Fixed by #12721
Assignees

Comments

@nicohrubec
Copy link
Contributor

nicohrubec commented Jul 4, 2024

This decorator can be put on any function within a nest application. Without this users can still do it using the tracing API but having a dedicated decorator is much more native to nest so should be more intuitive for nest developers. This can be used wherever we don't have automatic performance instrumentation yet or in scenarios where it might not work for some reason.

@nicohrubec nicohrubec mentioned this issue Jul 4, 2024
@nicohrubec nicohrubec changed the title startSpan decorator to get spans for arbitrary functions https://github.com/getsentry/sentry-javascript/pull/12721 startSpan decorator to get spans for arbitrary functions Jul 4, 2024
@nicohrubec nicohrubec self-assigned this Jul 4, 2024
@nicohrubec nicohrubec linked a pull request Jul 4, 2024 that will close this issue
@nicohrubec nicohrubec changed the title startSpan decorator to get spans for arbitrary functions SentryTraced() decorator to get spans for arbitrary functions Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant