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

Add Netty versions to the self-diagnostics #2716

Merged
merged 1 commit into from Nov 21, 2022
Merged

Conversation

jeanbisutti
Copy link
Member

For this code branch:
DEBUG c.m.applicationinsights.agent - Netty versions: (io.netty, netty-buffer, 4.1.84.Final), (io.netty, netty-codec, 4.1.84.Final), (io.netty, netty-codec-dns, 4.1.84.Final), (io.netty, netty-codec-http, 4.1.84.Final), (io.netty, netty-codec-http2, 4.1.84.Final), (io.netty, netty-codec-socks, 4.1.84.Final), (io.netty, netty-common, 4.1.84.Final), (io.netty, netty-handler, 4.1.84.Final), (io.netty, netty-handler-proxy, 4.1.84.Final), (io.netty, netty-resolver, 4.1.84.Final), (io.netty, netty-resolver-dns, 4.1.84.Final), (io.netty, netty-resolver-dns-classes-macos, 4.1.84.Final), (io.netty, netty-resolver-dns-native-macos, 4.1.84.Final), (io.netty, netty-tcnative-boringssl-static, 2.0.54.Final), (io.netty, netty-tcnative-classes, 2.0.54.Final), (io.netty, netty-transport, 4.1.84.Final), (io.netty, netty-transport-classes-epoll, 4.1.84.Final), (io.netty, netty-transport-classes-kqueue, 4.1.82.Final), (io.netty, netty-transport-native-epoll, 4.1.84.Final), (io.netty, netty-transport-native-kqueue, 4.1.82.Final), (io.netty, netty-transport-native-unix-common, 4.1.84.Final), (io.projectreactor.netty, reactor-netty-core, 1.1.0), (io.projectreactor.netty, reactor-netty-http, 1.1.0), (com.azure, azure-core-http-netty, 1.12.6)

@heyams
Copy link
Contributor

heyams commented Nov 18, 2022

is it necessary to log every library version under io.netty? can you provide more context?

String moreLicenseResource = "/META-INF/licenses/more-licenses.md";
InputStream moreLicenseAsStream = NettyVersions.class.getResourceAsStream(moreLicenseResource);
if (moreLicenseAsStream == null) {
return moreLicenseResource + " notFound";
Copy link
Contributor

Choose a reason for hiding this comment

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

when customer is not using netty, i think it's better not to log it at all. 'not found' for something that they don't use is a bit confusing.

Copy link
Member Author

Choose a reason for hiding this comment

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

META-INF/licenses/more-licenses.md file is supposed to always exist in Application Insights jar. It contains the versions of some libraries used by Application Insights.

Copy link
Contributor

Choose a reason for hiding this comment

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

what about NettyVersions.class.getResourceAsStream(moreLicenseResource)?

@jeanbisutti
Copy link
Member Author

We discussed the points during a meeting.

@jeanbisutti jeanbisutti merged commit 07d40e3 into main Nov 21, 2022
@jeanbisutti jeanbisutti deleted the netty-versions branch November 21, 2022 10:30
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.

None yet

3 participants