gpt4 book ai didi

azure - 如何在 Azure 中查看 Azure Function 主机启动时间?

转载 作者:行者123 更新时间:2023-12-02 06:40:05 24 4
gpt4 key购买 nike

我想知道添加实例来处理请求时 Azure 主机需要多长时间才能启动。当本地运行时,运行时会在“主机启动”日志旁边总结启动时间。据我所知,我在 Azure 中的任何地方都看不到这一点。

最佳答案

最好查询底层integrated Application Insights资源:

traces
| where customDimensions.Category == "Host.Startup"

11/30/2020, 7:34:24.132 AM Initializing Host. OperationId: '03640da2-e000-4af1-8e87-d83382d94347'.11/30/2020, 7:34:24.147 AM Host initialization: ConsecutiveErrors=0, StartupCount=1, OperationId=03640da2-e000-4af1-8e87-d83382d94347
11/30/2020, 7:34:26.877 AM Starting Host (HostId=nb001681-725949297, InstanceId=745ced93-4234-4ca3-b998-1e6b0af234a0, Version=3.0.14916.0, ProcessId=9196, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=(null))11/30/2020, 7:34:26.915 AM Loading functions metadata
11/30/2020, 7:34:26.946 AM 2 functions loaded
11/30/2020, 7:34:27.070 AM Generating 2 job function(s)
11/30/2020, 7:34:27.181 AM Found the following functions: FunctionApp.Function1.Run FunctionApp.HttpTriggered.Run
11/30/2020, 7:34:27.229 AM Host initialized (331ms)
11/30/2020, 7:34:27.250 AM Host started (355ms)
11/30/2020, 7:34:27.256 AM Job host started

关于azure - 如何在 Azure 中查看 Azure Function 主机启动时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65075633/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com