- Notifications
You must be signed in to change notification settings - Fork744
-
BetaWas this translation helpful?Give feedback.
All reactions
I ran into a similar issue. The Azure Functions template has the host.json which contains logging settings, but that does not control the process worker log levels.
The Functions host and the isolated process worker have separate configuration for log levels, etc. AnyApplication Insights configuration in host.json will not affect the logging from the worker, and similarly, configuration made in your worker code will not impact logging from the host. You need to apply changes in both places if your scenario requires customization at both layers.
…
Replies: 4 comments 3 replies
-
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1
-
I think the solution is configuration in the client to not send all telemetry to the dashboard. Either disable sending certain kinds of telemetry, or sample it. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Awesome, thanks. Are there any docs or guidance on how to do that? ChatGPT and such have not been helpful |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sorry I don't know about Azure Functions OTEL configuration. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I ran into a similar issue. The Azure Functions template has the host.json which contains logging settings, but that does not control the process worker log levels.
I added an appsettings.*.json file with the desired log levels to my Functions project and that calmed my logging down. I'm not sure if this is the long term solution, but it works for me for now. |
BetaWas this translation helpful?Give feedback.
All reactions
🎉 1
-
This did it, thanks! I wasn't expecting to need an appsettings.Development.json file in a functions project, since that usually uses host.json or local.settings.json. Adding the following appsettings.Development.json file fixed the issue: {"Logging": {"LogLevel": {"Default":"Information" } }} |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I ran into a similar issue with |
BetaWas this translation helpful?Give feedback.
