Skip to content

Add second environment variable to configure ikey#413

Merged
Dmitry-Matveev merged 3 commits intomicrosoft:masterfrom
c-w:feature/second-ikey-envvar
Aug 21, 2017
Merged

Add second environment variable to configure ikey#413
Dmitry-Matveev merged 3 commits intomicrosoft:masterfrom
c-w:feature/second-ikey-envvar

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Aug 21, 2017

None of the other SDKs use the APPLICATION_INSIGHTS_IKEY environment variable to configure the instrumentation key for Application Insights and instead use APPINSIGHTS_INSTRUMENTATIONKEY.

For consistency with the other SDKs (e.g. Dot-Net or Node) this Java SDK should also support the more common environment variable name to avoid confusion for developers who have experience with the non-Java SDKs.

None of the other SDKs use the `APPLICATION_INSIGHTS_IKEY` environment
variable to configure the instrumentation key for Application Insights
and instead use `APPINSIGHTS_INSTRUMENTATIONKEY`.

For consistency with the other SDKs (e.g. Dot-Net https://aka.ms/n2ruy1
or Node https://aka.ms/v8r0pk) this Java SDK should also support the
more common environment variable name to avoid confusion for developers
who have experience with the non-Java SDKs.
@msftclas
Copy link

@c-w,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Copy link
Contributor

@SergeyKanzhelev SergeyKanzhelev left a comment

Choose a reason for hiding this comment

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

Thank you!

@SergeyKanzhelev
Copy link
Contributor

BTW, can you please add an entry in CHANGELOG.md before merging?

@c-w
Copy link
Contributor Author

c-w commented Aug 21, 2017

@SergeyKanzhelev and @Dmitry-Matveev Thanks for the super quick review.

As requested, I updated the changelog (see 83bb635).

NB: I don't have write access to this repo, so someone on your side will have to hit the merge button.

@Dmitry-Matveev Dmitry-Matveev merged commit 28dec6f into microsoft:master Aug 21, 2017
@c-w c-w deleted the feature/second-ikey-envvar branch August 21, 2017 21:09
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