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

Fixes custom telemetry timestamp bug #412

Merged
merged 2 commits into from
Aug 22, 2017

Conversation

adnanyaqoobvirk
Copy link
Contributor

@adnanyaqoobvirk adnanyaqoobvirk commented Aug 19, 2017

Do not set telemetry timestamp if it already exists

Fixes a bug where track function of TelemetryClient class is overwriting the timestamp that was previously set for the telemetry. This results in not able to specify the order of different events.

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #
  • Changes in public surface reviewed
  • CHANGELOG.md updated

Do not set telemetry timestamp if it already exists
@msftclas
Copy link

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@Dmitry-Matveev
Copy link
Member

@adnanyaqoobvirk , thank you! The provided timestamp should indeed be preserved. Could you please also add a test for this? I think TelemetryClientTests can be a good place for it.

@adnanyaqoobvirk
Copy link
Contributor Author

@Dmitry-Matveev, Done. Let me know if you want me to add more tests.

@SergeyKanzhelev
Copy link
Contributor

@Dmitry-Matveev consider updating the CHANGELOG.md. I checked other two checkboxes in PR description

@Dmitry-Matveev Dmitry-Matveev merged commit 39f473b into microsoft:master Aug 22, 2017
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.

4 participants