Skip to content

Fix options internal reference to transport - #1589

Merged
mattjohnsonpint merged 1 commit into
mainfrom
fix-transport-on-options
Apr 25, 2022
Merged

mattjohnsonpint merged 1 commit into
mainfrom
fix-transport-on-options

Conversation

@mattjohnsonpint

Copy link
Copy Markdown
Contributor

While working on #1556, I found out that while the internal property SentryOptions.Transport is available, it is null unless manually set by a unit test. For client reports to work, I'll need it to be populated with the current transport so I can access the transport from SentryClient.

I also found that if a transport is set on the options, and a cache path is also set, caching doesn't work because it was just using the provided transport as-is without wrapping it in a CachingTransport.

This PR fixes both, and adds tests. There should be no externally noticeable behavior changed, so #skip-changelog

@bruno-garcia bruno-garcia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

2 participants