-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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(stacktrace): Add source_link on UI for .NET projects #55107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Sentry SDK reports platform=csharp
. This is for historical reasons. Happens that the SDK is written in C#, but .NET as a platform has different languages, and events from apps written in VB, or F#, also use the .NET SDK (and hence platform=csharp
but everything works out fine
I imagine it's probably better to merge this after hackweek since it's 5 PM PST? |
Currently pending: #55407 |
{frame.sourceLink && ( | ||
<React.Fragment> | ||
<IconFile /> | ||
<OpenInLink onClick={onOpenLink} href={frame.sourceLink} openInNewTab> | ||
{t('or open in source')} | ||
</OpenInLink> | ||
</React.Fragment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
temp example of using sourceLink when stacktrace linking is enabled but no provider integrations linked yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want sourceLink to display always if there is no provider integration (ie. don't bother displaying "Tell us where your code is" as long as there is a source link available)? Or should we still give users the option to link source code (not sure if this is actually fully functional for C#)
static/app/components/events/interfaces/frame/deprecatedLine.tsx
Outdated
Show resolved
Hide resolved
static/app/components/events/interfaces/frame/deprecatedLine.tsx
Outdated
Show resolved
Hide resolved
@@ -52,6 +52,7 @@ const supportedStacktracePlatforms: PlatformKey[] = [ | |||
'python', | |||
'ruby', | |||
'elixir', | |||
'csharp', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is no longer needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point!
This PR adds .NET's source_link to the UI so users can directly access the file being referenced in a certain issue.