Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

envelope has dedicated endpoint #353

Merged
merged 1 commit into from
Apr 15, 2020
Merged

envelope has dedicated endpoint #353

merged 1 commit into from
Apr 15, 2020

Conversation

marandaneto
Copy link
Contributor

@marandaneto marandaneto commented Apr 14, 2020

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

envelope has a dedicated endpoint.

💡 Motivation and Context

@jan-auer can tell more about it.

💚 How did you test it?

fixed and ran unit tests.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing

🔮 Next steps

this.sentryUrl = sentryUrl;

try {
final URI uri = sentryUrl.toURI();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bruno-garcia ideally I'd get this URI in the ctor instead of the current URL, but I'd not like to break the public API, I think this would be fine here.
what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

yeah this looks good for now but worth adding a task for v3.0.0 to refactor this. Perhaps we need to revisit the Dsn type (like add a toStore and toEnvelope or something completely different).
Such discussion for sure woudl involve the whole SDK team

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

We can go ahead with this but there's one comment we ideally would need to discuss

this.sentryUrl = sentryUrl;

try {
final URI uri = sentryUrl.toURI();
Copy link
Member

Choose a reason for hiding this comment

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

yeah this looks good for now but worth adding a task for v3.0.0 to refactor this. Perhaps we need to revisit the Dsn type (like add a toStore and toEnvelope or something completely different).
Such discussion for sure woudl involve the whole SDK team

@marandaneto
Copy link
Contributor Author

We can go ahead with this but there's one comment we ideally would need to discuss

yeah but toStore may get deprecated very soon as well and we'd even be able to come back to the original behavior but using /envelope lol.
the problem is the AsyncConnection and you know that :D

@marandaneto marandaneto merged commit a83f06e into getsentry:master Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants