Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: getsentry/sentry-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: thomaspurchas/sentry-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Sep 1, 2021

  1. Add protocol detection for get/request calls without explict protocol

    You can call `get`/`request` on `http`/`https` without providing an
    explicit protocol in the request options. In this case the protocol is
    automatically set based on which module you made the call to.
    
    Previously calls like this would result in breadcrumbs and traces
    without a protocol in the URL creating downstream issues for consumers
    of Breadcrumbs as the missing protocol results in URL throwing parsing
    errors.
    
    We now attempt to get the protocol by either extracting it from the
    `agent` passed as part of the request options, or by extracting it from
    the `globalAgent` on which ever http module is pass in `this`.
    thomaspurchas committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    18f0e6d View commit details
    Browse the repository at this point in the history
Loading