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

Make 3.4 Classic SDK work with prior 3.x Agent versions #2531

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

trask
Copy link
Member

@trask trask commented Sep 21, 2022

Resolves #2522 (comment)

TODO add smoke tests

@trask trask marked this pull request as ready for review September 21, 2022 20:29
Comment on lines +340 to +345
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.user.id", "user-id-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.user.accountId", "account-id-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.user.userAgent", "user-agent-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.device.os", "os-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.session.id", "session-id-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.location.ip", "1.2.3.4");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.user.id", "user-id-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.user.accountId", "account-id-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.user.userAgent", "user-agent-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.device.os", "os-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.session.id", "session-id-goes-here");
assertThat(pvdEnvelope2.getTags()).containsEntry("ai.location.ip", "1.2.3.4");
assertThat(pvdEnvelope2.getTags())
.containsEntry("ai.user.id", "user-id-goes-here")
.containsEntry("ai.user.accountId", "account-id-goes-here")
.containsEntry("ai.user.userAgent", "user-agent-goes-here")
.containsEntry("ai.device.os", "os-goes-here")
.containsEntry("ai.session.id", "session-id-goes-here")
.containsEntry("ai.location.ip", "1.2.3.4");

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea, this is in many places I believe, I created work item and will update everywhere

heyams pushed a commit that referenced this pull request Sep 23, 2022
I think 3.4.1 is warranted for #2531, but will hold on the release for a
bit to see if anything else arises.
@heyams heyams merged commit bb35191 into main Sep 23, 2022
@heyams heyams deleted the fix-core-and-prior-3x-agent branch September 23, 2022 19:56
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.

applicationinsights-core 2.6.4 cause to high build time
3 participants