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

How to turn off "Executing | Executed | Trigger details" traces #10308

Closed
vany0114 opened this issue Jul 18, 2024 · 4 comments
Closed

How to turn off "Executing | Executed | Trigger details" traces #10308

vany0114 opened this issue Jul 18, 2024 · 4 comments
Assignees

Comments

@vany0114
Copy link

vany0114 commented Jul 18, 2024

Is your question related to a specific version? If so, please specify:

"@azure/functions": "^3.5.1"

What language does your question apply to? (e.g. C#, JavaScript, Java, All)

Javascript - NodeJS

Question

Is there a way to configure the log level to avoid ingesting these runtime traces?

Executing 'Functions.HttpTrigger1' ...
Executed 'Functions.HttpTrigger1' (Succeeded ...)

I noticed that using the Application Insights SDK there's no way we can sample those, they never land in the telemetry processor, I guess it's because they are runtime traces.

I know we can configure the log level per function, like:

"Function.HttpTrigger1": "None"

However, that's not ideal or maintainable and if I do this:

"Functions": "None"

Then I lose all the logs.

We need to do so because they swamped our telemetry data, they are not useful for us and we're being charged for that which is super expensive.

Related issue: microsoft/ApplicationInsights-node.js#1359 (comment)

@bhagyshricompany
Copy link

bhagyshricompany commented Jul 22, 2024

@vany0114
Copy link
Author

Thanks for reporting please refer this doc ::https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitoring#disable-built-in-logging

I've already seen that documentation, however, it doesn't answer the question.

@jviau
Copy link
Contributor

jviau commented Jul 22, 2024

@vany0114 it is not possible to configure these specific logs beyond the log-level filters you mentioned. However, we are making investments in moving to open telemetry, which will improve this area in the future.

/cc: @RohitRanjanMS

@RohitRanjanMS
Copy link
Member

@vany0114, we recently launched OpenTelemetry support in Azure Functions, as detailed here. One of our goals was to reduce telemetry, and as a result, we no longer generate "Executing..." and "Executed..." logs. Instead, we only provide a request telemetry that contains all the necessary information.

Currently, this feature is available for the Flex consumption plan, but we plan to extend it to all SKUs in the future.

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

No branches or pull requests

4 participants