File tree Expand file tree Collapse file tree 4 files changed +2
-11
lines changed
Expand file tree Collapse file tree 4 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 6666 src\Microsoft.Azure.WebJobs\WebJobs.csproj
6767 src\Microsoft.Azure.WebJobs.Host\WebJobs.Host.csproj
6868 src\Microsoft.Azure.WebJobs.Host\WebJobs.Host.Sources.csproj
69- src\Microsoft.Azure.WebJobs.Logging\WebJobs.Logging.csproj
70- src\Microsoft.Azure.WebJobs.Logging.ApplicationInsights\WebJobs.Logging.ApplicationInsights.csproj
7169 src\Microsoft.Azure.WebJobs.Host.Storage\WebJobs.Host.Storage.csproj
7270 src\Microsoft.Azure.WebJobs.Rpc.Core\WebJobs.Rpc.Core.csproj
7371 src\Microsoft.Azure.WebJobs.Extensions.Rpc\WebJobs.Extensions.Rpc.csproj
Original file line number Diff line number Diff line change 3030 arguments : -c $(configuration) --no-build
3131 projects : |
3232 test\Microsoft.Azure.WebJobs.Host.FunctionalTests\*.csproj
33- test\Microsoft.Azure.WebJobs.Logging.FunctionalTests\*.csproj
3433 test\Microsoft.Azure.WebJobs.Host.EndToEndTests\*.csproj
3534 env :
3635 AzureWebJobsDashboard : $(Storage)
Original file line number Diff line number Diff line change @@ -32,19 +32,13 @@ public static async Task Main(string[] args)
3232 {
3333 b . SetMinimumLevel ( LogLevel . Debug ) ;
3434 b . AddConsole ( ) ;
35-
36- // If this key exists in any config, use it to enable App Insights
37- string appInsightsKey = context . Configuration [ "APPINSIGHTS_INSTRUMENTATIONKEY" ] ;
38- if ( ! string . IsNullOrEmpty ( appInsightsKey ) )
39- {
40- b . AddApplicationInsightsWebJobs ( o => o . InstrumentationKey = appInsightsKey ) ;
41- }
4235 } )
4336 . ConfigureServices ( services =>
4437 {
4538 // add some sample services to demonstrate job class DI
4639 services . AddSingleton < ISampleServiceA , SampleServiceA > ( ) ;
4740 services . AddSingleton < ISampleServiceB , SampleServiceB > ( ) ;
41+ services . AddApplicationInsightsTelemetryWorkerService ( ) ;
4842 } )
4943 . UseConsoleLifetime ( ) ;
5044
Original file line number Diff line number Diff line change 1111 </ItemGroup >
1212
1313 <ItemGroup >
14+ <PackageReference Include =" Microsoft.ApplicationInsights.WorkerService" Version =" 2.23.0" />
1415 <PackageReference Include =" Microsoft.Azure.WebJobs.Extensions.EventHubs" Version =" 6.3.5" />
1516 <PackageReference Include =" Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version =" 5.16.4" />
1617 <PackageReference Include =" Microsoft.Azure.WebJobs.Extensions.Storage" Version =" 5.3.3" />
2526 <ItemGroup >
2627 <ProjectReference Include =" ..\..\src\Microsoft.Azure.WebJobs.Host.Storage\WebJobs.Host.Storage.csproj" />
2728 <ProjectReference Include =" ..\..\src\Microsoft.Azure.WebJobs.Host\WebJobs.Host.csproj" />
28- <ProjectReference Include =" ..\..\src\Microsoft.Azure.WebJobs.Logging.ApplicationInsights\WebJobs.Logging.ApplicationInsights.csproj" />
2929 </ItemGroup >
3030
3131
You can’t perform that action at this time.
0 commit comments