Skip to content

Commit

Permalink
added release to options in verify
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandfoxes committed Aug 2, 2023
1 parent 57ff2f5 commit dd1ed93
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Sentry/SentryPropagationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public DynamicSamplingContext? DynamicSamplingContext
}
else
{
throw new Exception("should not do that.");
throw new Exception("Attempted to set the DynamicSamplingContext but the context exists already.");
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/Sentry.EntityFramework.Tests/IntegrationTests.verify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public async Task Simple()
TracesSampleRate = 1,
Transport = transport,
Dsn = ValidDsn,
DiagnosticLevel = SentryLevel.Debug
DiagnosticLevel = SentryLevel.Debug,
Release = "test-release"
};

options.AddEntityFramework();
Expand Down
3 changes: 2 additions & 1 deletion test/Sentry.Log4Net.Tests/IntegrationTests.verify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public async Task LoggingInsideTheContextOfLogging()
DiagnosticLevel = SentryLevel.Debug,
Transport = transport,
Dsn = ValidDsn,
AttachStacktrace = false
AttachStacktrace = false,
Release = "test-release"
};

var hub = SentrySdk.InitHub(options);
Expand Down
1 change: 1 addition & 0 deletions test/Sentry.NLog.Tests/IntegrationTests.verify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public Task LoggingInsideTheContextOfLogging()
options.Transport = transport;
options.Dsn = ValidDsn;
options.AttachStacktrace = false;
options.Release = "test-release";
});

LogManager.Configuration = configuration;
Expand Down
1 change: 1 addition & 0 deletions test/Sentry.Serilog.Tests/IntegrationTests.verify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public Task LoggingInsideTheContextOfLogging()
_.Dsn = ValidDsn;
_.Debug = true;
_.AttachStacktrace = false;
_.Release = "test-release";
});

Log.Logger = configuration.CreateLogger();
Expand Down

0 comments on commit dd1ed93

Please sign in to comment.