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

Ability to disable calls to instance metadata endpoint #1775

Closed
jbrailsford opened this issue Jun 28, 2021 · 7 comments
Closed

Ability to disable calls to instance metadata endpoint #1775

jbrailsford opened this issue Jun 28, 2021 · 7 comments
Milestone

Comments

@jbrailsford
Copy link

Currently when running the AI integration for Java for code that's deployed outside of Azure, we see repeated calls to the instance metadata service endpoint (http://169.254.169.254:80) - naturally these fail given it's not running in an environment with that available.

Ideally it should be possible to disable this module in the same way it's possible to disable some of the automatic dependency telemtry modules.

If it's already possible to disable it, could it instead be documented?

@trask
Copy link
Member

trask commented Jun 30, 2021

hi @jbrailsford! where are you seeing these calls? is the agent logging them, or are you capturing/seeing them some other way? thx

@jbrailsford
Copy link
Author

Hey @trask, apologies for the delay, will confirm what is logging them with our dev team tomorrow AM (UK time).

In the meantime, this may be of help, these are the log messages that are emitted:

2021-06-28 12:09:51.547Z INFO  o.a.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://169.254.169.254:80: Network is unreachable (connect failed)
2021-06-28 12:09:51.547Z INFO  o.a.http.impl.execchain.RetryExec - Retrying request to {}->http://169.254.169.254:80
2021-06-28 12:09:51.554Z INFO  o.a.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://169.254.169.254:80: Network is unreachable (connect failed)
…

@jbrailsford
Copy link
Author

Back again, it appears that the exceptions are being logged by Log4J.

@trask
Copy link
Member

trask commented Jul 20, 2021

hey @jbrailsford, sorry for the late reply, logging this at INFO was not intentional, and will be fixed in the next release 👍

@jbrailsford
Copy link
Author

hey @trask - that's great to hear, thanks for letting me know!

@trask trask added this to the 3.2.0-BETA.2 milestone Jul 23, 2021
@trask
Copy link
Member

trask commented Jul 23, 2021

This is fixed in main and will be in 3.2.0-BETA.2

@trask trask closed this as completed Jul 23, 2021
@trask
Copy link
Member

trask commented Aug 4, 2021

3.2.0-BETA.2 is released

@ghost ghost locked as resolved and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants