-
Notifications
You must be signed in to change notification settings - Fork 194
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
adding diagnostic logs for startup and function loading #236
Conversation
@@ -39,6 +39,9 @@ public void Configure(WebJobsBuilderContext context, IWebJobsConfigurationBuilde | |||
{ _dotnetIsolatedWorkerConfigPath, appRootPath }, | |||
{ _dotnetIsolatedWorkerExePath, newWorkerDescription.DefaultExecutablePath! } | |||
}); | |||
|
|||
Environment.SetEnvironmentVariable("DOTNET_NOLOGO", "true"); | |||
Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if this will help any at startup? I'm trying it out...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect the telemetry option wouldn't impact much, as it won't likely ever be running for the first time. Nologo might.
1143b6a
to
7008e5b
Compare
@@ -39,6 +39,9 @@ public void Configure(WebJobsBuilderContext context, IWebJobsConfigurationBuilde | |||
{ _dotnetIsolatedWorkerConfigPath, appRootPath }, | |||
{ _dotnetIsolatedWorkerExePath, newWorkerDescription.DefaultExecutablePath! } | |||
}); | |||
|
|||
Environment.SetEnvironmentVariable("DOTNET_NOLOGO", "true"); | |||
Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect the telemetry option wouldn't impact much, as it won't likely ever be running for the first time. Nologo might.
7008e5b
to
1e78ab3
Compare
namespace Microsoft.Azure.Functions.Worker.Diagnostics | ||
{ | ||
/// <summary> | ||
/// Represents an interface for sending logs directly to the Fucctions host. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Spelling Fucctions
54eecf2
to
6b5c263
Compare
In Kusto, these two logs will look like:
ApplicationStarted:
FunctionLoaded: