Skip to content

Commit

Permalink
using Microsoft.ApplicationInsights.AspNetCore.Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Sep 12, 2024
1 parent e83258a commit d0704d1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.Linq;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.AspNetCore.Extensions;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.Bot.Builder.ApplicationInsights;
using Microsoft.Bot.Configuration;
Expand Down Expand Up @@ -58,7 +59,7 @@ public static IServiceCollection AddBotApplicationInsights(this IServiceCollecti
if (appInsightService != null)
{
// Create Application Insights options and disable adaptive sampling
var aiOptions = new Microsoft.ApplicationInsights.AspNetCore.Extensions.ApplicationInsightsServiceOptions
var aiOptions = new ApplicationInsightsServiceOptions
{
EnableAdaptiveSampling = false,
InstrumentationKey = appInsightService.InstrumentationKey
Expand Down Expand Up @@ -99,7 +100,7 @@ public static IServiceCollection AddBotApplicationInsights(this IServiceCollecti
if (!string.IsNullOrWhiteSpace(instrumentationKey))
{
// Create Application Insights options and disable adaptive sampling
var aiOptions = new Microsoft.ApplicationInsights.AspNetCore.Extensions.ApplicationInsightsServiceOptions
var aiOptions = new ApplicationInsightsServiceOptions
{
EnableAdaptiveSampling = false,
InstrumentationKey = instrumentationKey
Expand Down Expand Up @@ -140,7 +141,7 @@ public static IServiceCollection AddBotApplicationInsights(this IServiceCollecti
if (instrumentationKey != null)
{
// Create Application Insights options and disable adaptive sampling
var aiOptions = new Microsoft.ApplicationInsights.AspNetCore.Extensions.ApplicationInsightsServiceOptions
var aiOptions = new ApplicationInsightsServiceOptions
{
EnableAdaptiveSampling = false,
InstrumentationKey = instrumentationKey
Expand Down

0 comments on commit d0704d1

Please sign in to comment.