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

[Hackweek] Blazor Wasm SDK #2569

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from
Draft

[Hackweek] Blazor Wasm SDK #2569

wants to merge 31 commits into from

Conversation

bruno-garcia
Copy link
Member

@bruno-garcia bruno-garcia commented Aug 21, 2023

See: #2021

  • JavaScript SDK bundled in Sentry.AspNetCore.Blazor
    • Session Replay ✔️
    • Browser performance monitoring ✔️
  • Download JavaScript SDK during .NET package build
  • Init SDK with UseSentry on the WebAssemblyHostBuilder
  • Support for dependency injection in Blazor wasm
  • Auto registering Sentry.Extensions.Logging to capture errors/breadcrumbs
  • Scope changes in C# propagate to JavaScript
  • Set User-Agent to get browser/OS info in Sentry:

image

  • navigation breadcrumbs

image

Wasm debug id: dotnet/runtime#91049

Wasm: getsentry/sentry-javascript#8259 (comment)

@github-actions
Copy link
Contributor

github-actions bot commented Aug 21, 2023

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- [Hackweek] Blazor Wasm SDK ([#2569](https://github.com/getsentry/sentry-dotnet/pull/2569))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against eb9fc8f

@bruno-garcia
Copy link
Member Author

bruno-garcia commented Aug 23, 2023

Failed to find a valid digest in the 'integrity' attribute for resource 'http://10.1.4.61:8080/_framework/dotnet.wasm' with computed SHA-256 integrity 'L9wl7aWfzMxJ3i5yN5Lb59PLRhBO0sfzIaGGT6frWMg='. The resource has been blocked.

This is now in the way of patching the wasm to add a debug id

Internet says <BlazorCacheBootResources>false</BlazorCacheBootResources> turns it off

@bruno-garcia
Copy link
Member Author

Can't figure out why the debug_id isnt' even found, lets try:

for f in $(find . -name '*.wasm'); do  ../../src/Sentry.AspNetCore.Blazor/wasm-split-Darwin-universal $f; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants