Skip to content
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

fix: named client events #472

Merged
merged 3 commits into from
Jul 4, 2023
Merged

Conversation

toddbaert
Copy link
Member

  • fixed issues where named client wouldnt get events from a default provider

@toddbaert toddbaert requested a review from a team as a code owner June 29, 2023 21:09
@toddbaert toddbaert requested a review from lukas-reining June 29, 2023 21:09
@toddbaert toddbaert force-pushed the fix/default-provider-named-client branch from 28269a5 to 72717b9 Compare June 29, 2023 21:11
@toddbaert toddbaert marked this pull request as draft June 29, 2023 21:11
@toddbaert
Copy link
Member Author

toddbaert commented Jun 29, 2023

@lukas-reining I think this is a bug. I found it doing some integration testing. The new tests failed without my change. We still need to transfer the "unbound" emitters when the default provider is changed, I think.

Please take a look and make sure the solution makes sense to you.

If you think we need additional changes, feel free to push more to this branch. I did this pretty quickly to prove out the problem, so there's possibly things that can be improved.

@toddbaert toddbaert force-pushed the fix/default-provider-named-client branch 2 times, most recently from 8990897 to cda86f5 Compare June 29, 2023 21:52
* fixed issues where named client wouldnt get events from a default provider

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert force-pushed the fix/default-provider-named-client branch from cda86f5 to c26b421 Compare June 29, 2023 21:55
Copy link
Member

@lukas-reining lukas-reining left a comment

Choose a reason for hiding this comment

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

Oh yes that is a problem.
Your solution looks good and makes sense.
Just refactored a bit and used getAndCacheEventEmitterForClient when getting the emitters.
What do you think @toddbaert?

@lukas-reining lukas-reining self-requested a review June 30, 2023 09:08
@lukas-reining lukas-reining marked this pull request as ready for review July 1, 2023 13:23
@toddbaert
Copy link
Member Author

@lukas-reining that makes sense, and I very much like your refactors!

@toddbaert toddbaert merged commit fb69b9d into main Jul 4, 2023
toddbaert pushed a commit that referenced this pull request Jul 4, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.0.6](shared-v0.0.5...shared-v0.0.6)
(2023-07-04)


### Bug Fixes

* named client events
([#472](#472))
([fb69b9d](fb69b9d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
toddbaert pushed a commit that referenced this pull request Jul 4, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.3.6-experimental](web-sdk-v0.3.5-experimental...web-sdk-v0.3.6-experimental)
(2023-07-04)


### Bug Fixes

* named client events
([#472](#472))
([fb69b9d](fb69b9d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@toddbaert toddbaert deleted the fix/default-provider-named-client branch July 4, 2023 17:09
toddbaert added a commit that referenced this pull request Jul 4, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.3.2](js-sdk-v1.3.1...js-sdk-v1.3.2)
(2023-07-04)


### Bug Fixes

* named client events
([#472](#472))
([fb69b9d](fb69b9d))
* various event handler issues
([1dd1e17](1dd1e17))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
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