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

feat(nextjs): Add telemetry collection to NextJS wizard #458

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Sep 14, 2023

This PR adds telemetry data collection to the NextJS wizard. Specifically:

  • Transaction and spans:
    image
  • tags around
    • Next JS major versions
    • SDK already installed
    • SDK configuration methods and results
    • Detected package manager (this tag will be added to all wizards with telemetry)

This PR is unfortunately a little messy because I decided to pull a lot of the traceStep calls into the helper functions rather than wrapping the individual calls to the helpers. IMO this is better as we can reuse already existing manual instrumentation when we use these helpers. Also, if telemetry is disabled or the helper is used in a wizard that doesn't support telemetry, the traceStep wrapper will no-op anyway.

closes #450

@github-actions
Copy link

github-actions bot commented Sep 14, 2023

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against e01be1c

@Lms24 Lms24 requested review from lforst and AbhiPrasad September 14, 2023 15:47
@Lms24
Copy link
Member Author

Lms24 commented Sep 14, 2023

Thought: We can bump the SDK and test the new span APIs. Will open a separate PR for this.

Udate: #459

@Lms24 Lms24 self-assigned this Sep 15, 2023
@Lms24 Lms24 merged commit 8fffc71 into master Sep 18, 2023
9 checks passed
@Lms24 Lms24 deleted the lms/feat-telemetry-nextjs branch September 18, 2023 14:16
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 this pull request may close these issues.

Add telemetry to NextJS wizard
2 participants