Raygun Feature Request

Feature Request

Set relative location for source maps

Current Status:

New

Votes:

1


Avatar

k3r

We use Bitbucket integration, which is incredibly useful for linking directly to server source code.

Client side though, the relative location of the source is wrong. The parser assumes the root of the website is the root of the project. Is there anyway I can set the base location of the source files, so the Bitbucket link takes you to the file?

/ <-- Project root
  /some-folder
    /www <-- Web root
      /script.js <-- Public JS

Source maps point to '/script.js' on Bitbucket, but should point to '/some-folder/www/script.js'.


Avatar

Raygun

MattByers

Posted on
Apr 01 2021

Hi k3r,

Thanks for getting in touch with us. Just to clarify your point, are you seeing our BitBucket integration create links to invalid locations or is it unable to resolve links completely? If possible, it would be great if you could provide us an example of a stracktrace that is exhibiting this behaviour. You can email us at support@raygun.com if you would like to provide more details.

Kind regards,

Matt

Avatar

k3r

Posted on
Apr 06 2021

Hi Matt,

The Bitbucket links are there, but incorrect. The relative location is wrong, by which I mean the Bitbucket link assumes the root of the website is the root of the repository. This suggestion started it's life as a support request, but I was advised to log it here. I am able to re log this with support if that would help. The original support id is 22502.

https://share.getcloudapp.com/NQuwv8k7

In the screen shot above, the source map correctly provides the location relative to the root of the website. That path is mapped (incorrectly) to the root of the repository, when clicking the Bitbucket link. However, clicking a Bitbucket link contained in a C# stack trace maps correctly.

Rich