@@ -45,7 +45,11 @@ public void UseRouting_AutoRegisterTracingDisabled_SentryTracingNotRegistered()
4545 // Arrange
4646 _fixture . ConfigureServices = services => services . AddRouting ( ) ;
4747 _fixture . Configure = applicationBuilder => applicationBuilder . UseRouting ( ) ;
48- _fixture . ConfigureOptions = options => options . AutoRegisterTracing = false ;
48+ _fixture . ConfigureOptions = options =>
49+ {
50+ options . Dsn = Sentry . Constants . DisableSdkDsnValue ;
51+ options . AutoRegisterTracing = false ;
52+ } ;
4953
5054 // Act - implicit
5155 var ( _, builder ) = _fixture . GetSut ( ) ;
@@ -60,7 +64,11 @@ public void UseRouting_OtelInstrumentation_SentryTracingNotRegistered()
6064 // Arrange
6165 _fixture . ConfigureServices = services => services . AddRouting ( ) ;
6266 _fixture . Configure = applicationBuilder => applicationBuilder . UseRouting ( ) ;
63- _fixture . ConfigureOptions = options => options . Instrumenter = Instrumenter . OpenTelemetry ;
67+ _fixture . ConfigureOptions = options =>
68+ {
69+ options . Dsn = Sentry . Constants . DisableSdkDsnValue ;
70+ options . Instrumenter = Instrumenter . OpenTelemetry ;
71+ } ;
6472
6573 // Act - implicit
6674 var ( _, builder ) = _fixture . GetSut ( ) ;
@@ -82,6 +90,10 @@ public void UseRouting_SentryTracingRegisteredWithoutWarning()
8290 services . AddRouting ( ) ;
8391 } ;
8492 _fixture . Configure = applicationBuilder => applicationBuilder . UseRouting ( ) ;
93+ _fixture . ConfigureOptions = options =>
94+ {
95+ options . Dsn = Sentry . Constants . DisableSdkDsnValue ;
96+ } ;
8597
8698 // Act
8799 var ( _, builder ) = _fixture . GetSut ( ) ;
@@ -107,6 +119,10 @@ public void UseSentryTracing_AutoRegisterTracing_Warning()
107119 applicationBuilder . UseRouting ( ) ;
108120 applicationBuilder . UseSentryTracing ( ) ;
109121 } ;
122+ _fixture . ConfigureOptions = options =>
123+ {
124+ options . Dsn = Sentry . Constants . DisableSdkDsnValue ;
125+ } ;
110126
111127 // Act
112128 var _ = _fixture . GetSut ( ) ;
0 commit comments