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

Fix AppInsights instrumentation key obsolete method usage #443

Closed
MattMcL4475 opened this issue Aug 1, 2022 · 1 comment
Closed

Fix AppInsights instrumentation key obsolete method usage #443

MattMcL4475 opened this issue Aug 1, 2022 · 1 comment
Assignees
Labels
Bug Something isn't working
Milestone

Comments

@MattMcL4475
Copy link
Contributor

Describe the bug
deploy-cromwell-on-azure.Tests -> D:\a\1\a\deploy-cromwell-on-azure.Tests.dll
##[warning]src\TriggerService\Program.cs(43,25): Warning CS0618: 'ApplicationInsightsLoggingBuilderExtensions.AddApplicationInsights(ILoggingBuilder, string, Action)' is obsolete: 'InstrumentationKey based global ingestion is being deprecated. Use the AddApplicationInsights() overload which accepts Action and set TelemetryConfiguration.ConnectionString. See microsoft/ApplicationInsights-dotnet#2560 for more details.'
D:\a\1\s\src\TriggerService\Program.cs(43,25): warning CS0618: 'ApplicationInsightsLoggingBuilderExtensions.AddApplicationInsights(ILoggingBuilder, string, Action)' is obsolete: 'InstrumentationKey based global ingestion is being deprecated. Use the AddApplicationInsights() overload which accepts Action and set TelemetryConfiguration.ConnectionString. See microsoft/ApplicationInsights-dotnet#2560 for more details.' [D:\a\1\s\src\TriggerService\TriggerService.csproj]
##[warning]src\TesApi.Web\Startup.cs(130,36): Warning CS0618: 'ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection, string)' is obsolete: 'InstrumentationKey based global ingestion is being deprecated. Use the AddApplicationInsightsTelemetry() overload which accepts Action and set ApplicationInsightsServiceOptions.ConnectionString. See microsoft/ApplicationInsights-dotnet#2560 for more details.'
D:\a\1\s\src\TesApi.Web\Startup.cs(130,36): warning CS0618: 'ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection, string)' is obsolete: 'InstrumentationKey based global ingestion is being deprecated. Use the AddApplicationInsightsTelemetry() overload which accepts Action and set ApplicationInsightsServiceOptions.ConnectionString. See microsoft/ApplicationInsights-dotnet#2560 for more details.' [D:\a\1\s\src\TesApi.Web\TesApi.Web.csproj]
##[warning]src\TesApi.Web\Program.cs(50,33): Warning CS0618: 'ApplicationInsightsLoggingBuilderExtensions.AddApplicationInsights(ILoggingBuilder, string)' is obsolete: 'InstrumentationKey based global ingestion is being deprecated. Use the AddApplicationInsights() overload which accepts Action and set TelemetryConfiguration.ConnectionString. See microsoft/ApplicationInsights-dotnet#2560 for more details.'
D:\a\1\s\src\TesApi.Web\Program.cs(50,33): warning CS0618: 'ApplicationInsightsLoggingBuilderExtensions.AddApplicationInsights(ILoggingBuilder, string)' is obsolete: 'InstrumentationKey based global ingestion is being deprecated. Use the AddApplicationInsights() overload which accepts Action and set TelemetryConfiguration.ConnectionString. See microsoft/ApplicationInsights-dotnet#2560 for more details.' [D:\a\1\s\src\TesApi.Web\TesApi.Web.csproj]
TriggerService -> D:\a\1\a\TriggerService.dll
TesApi.Web -> D:\a\1\a\tesapi.dll
TesApi.Tests -> D:\a\1\a\TesApi.Tests.dll

Steps to Reproduce
See above warnings

Expected behavior
No build warnings

@MattMcL4475 MattMcL4475 added the Bug Something isn't working label Aug 1, 2022
@MattMcL4475 MattMcL4475 added this to the 3.2 milestone Aug 1, 2022
@MattMcL4475 MattMcL4475 self-assigned this Aug 1, 2022
@MattMcL4475
Copy link
Contributor Author

Fixed by #445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant