File tree Expand file tree Collapse file tree
Codebreaker.SqlServerMigration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using Codebreaker . Data . Cosmos ;
2+
23using Microsoft . EntityFrameworkCore ;
34using Microsoft . EntityFrameworkCore . Infrastructure ;
45using Microsoft . EntityFrameworkCore . Storage ;
5- using Microsoft . Extensions . DependencyInjection ;
6- using Microsoft . Extensions . Hosting ;
7- using OpenTelemetry . Trace ;
6+
87using System . Diagnostics ;
98
109namespace Codebreaker . SqlServerMigration ;
@@ -29,7 +28,7 @@ protected override async Task ExecuteAsync(CancellationToken cancellationToken)
2928 }
3029 catch ( Exception ex )
3130 {
32- activity ? . RecordException ( ex ) ;
31+ activity ? . AddException ( ex ) ;
3332 throw ;
3433 }
3534
Original file line number Diff line number Diff line change 11using Codebreaker . Data . SqlServer ;
2+
23using Microsoft . EntityFrameworkCore ;
34using Microsoft . EntityFrameworkCore . Infrastructure ;
45using Microsoft . EntityFrameworkCore . Storage ;
56using Microsoft . Extensions . DependencyInjection ;
67using Microsoft . Extensions . Hosting ;
7- using OpenTelemetry . Trace ;
8+
89using System . Diagnostics ;
910
1011namespace Codebreaker . SqlServerMigration ;
@@ -30,7 +31,7 @@ protected override async Task ExecuteAsync(CancellationToken cancellationToken)
3031 }
3132 catch ( Exception ex )
3233 {
33- activity ? . RecordException ( ex ) ;
34+ activity ? . AddException ( ex ) ;
3435 throw ;
3536 }
3637
You can’t perform that action at this time.
0 commit comments