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

Worker logs missing "HostInstanceId" in telemetry #9611

Open
ejizba opened this issue Oct 12, 2023 · 1 comment
Open

Worker logs missing "HostInstanceId" in telemetry #9611

ejizba opened this issue Oct 12, 2023 · 1 comment

Comments

@ejizba
Copy link
Contributor

ejizba commented Oct 12, 2023

I find that "HostInstanceId" is a useful property to investigate various incidents (either filtering by it or using it in a summarize). Unfortunately the "Worker." logs don't have that property, which are the main logs I normally care about for Node.js. This might be related to #9360, specifically I wonder if the "WebHost" vs "JobHost" problem which Brett mentioned to me offline could be the root cause of both.

Here's a query showing which categories set the HostInstanceId and which don't. There's quite a few that don't, although "Worker." ones are the ones I care about most.

Execute in [Web] [Desktop] [cluster('wawseus.kusto.windows.net').database('wawsprod')]

let st = datetime(2023-10-12T22:21:19.3921437Z);
let et = st + 1m;
let sn = "emjjs2";
FunctionsLogs
| where PreciseTimeStamp between (st .. et)
| where AppName =~ sn
| summarize count() by Source, HostInstanceId
| sort by count_ desc

Table0
Source HostInstanceId count_
Host.Startup 914ddea7-4f62-4f2c-9032-d65ea8625e19 19
Worker.LanguageWorkerChannel.node.1aff96b3-0ab7-42ec-9be3-36e033feffb0   12
Host.LanguageWorkerConfig 914ddea7-4f62-4f2c-9032-d65ea8625e19 11
Microsoft.Azure.WebJobs.Script.WebHost.Middleware.SystemTraceMiddleware   10
Microsoft.Azure.WebJobs.Hosting.OptionsLoggingService 914ddea7-4f62-4f2c-9032-d65ea8625e19 8
Host.General   7
Microsoft.Azure.WebJobs.Script.WebHost.SecretManager   6
Microsoft.Azure.WebJobs.Script.WebHost.Security.Authentication.ArmAuthenticationHandler   5
Microsoft.Azure.WebJobs.Script.WebHost.Authentication.AuthenticationLevelHandler   5
Microsoft.Azure.WebJobs.Script.WebHost.Management.FunctionsSyncManager   5
Microsoft.Azure.WebJobs.Script.WorkerFunctionMetadataProvider   3
Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcFunctionInvocationDispatcher 914ddea7-4f62-4f2c-9032-d65ea8625e19 3
Microsoft.Azure.WebJobs.Script.WebHost.StartupContextProvider   3
Host.Controllers.Host 914ddea7-4f62-4f2c-9032-d65ea8625e19 3
Microsoft.Azure.WebJobs.Script.Workers.WorkerProfileManager   2
Microsoft.Azure.WebJobs.Script.WebHost.FunctionMetadataProvider   2
Microsoft.Azure.WebJobs.Script.HostFunctionMetadataProvider   2
Microsoft.Azure.WebJobs.Script.WebHost.DefaultSecretManagerProvider   2
Host.General 914ddea7-4f62-4f2c-9032-d65ea8625e19 2
Microsoft.Azure.WebJobs.Host.IDistributedLockManager 914ddea7-4f62-4f2c-9032-d65ea8625e19 1
Host.Triggers.Warmup 914ddea7-4f62-4f2c-9032-d65ea8625e19 1
Microsoft.Azure.WebJobs.Hosting.JobHostService 914ddea7-4f62-4f2c-9032-d65ea8625e19 1
Microsoft.Azure.WebJobs.Script.WebHost.WebScriptHostHttpRoutesManager 914ddea7-4f62-4f2c-9032-d65ea8625e19 1
Microsoft.Azure.WebJobs.Script.WebHost.Middleware.ClrOptimizationMiddleware   1
Microsoft.Azure.WebJobs.Script.WebHost.BlobStorageSecretsRepository   1
Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.DiagnosticListenerService   1
@carl-underwood
Copy link

Hi @ejizba, just wondering if you found a workaround for this?

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

2 participants