From 816a848140b9c406e2c9c142e4f33b6225a25f1c Mon Sep 17 00:00:00 2001 From: cryptooda Date: Wed, 14 May 2025 15:05:31 +0700 Subject: [PATCH] setup env for sentry --- src/Managing.Api.Workers/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Managing.Api.Workers/Program.cs b/src/Managing.Api.Workers/Program.cs index ef3de0e..cd72b07 100644 --- a/src/Managing.Api.Workers/Program.cs +++ b/src/Managing.Api.Workers/Program.cs @@ -51,6 +51,8 @@ SentrySdk.Init(options => // Example sample rate for your transactions: captures 10% of transactions options.TracesSampleRate = 0.1; + + options.Environment = builder.Environment.EnvironmentName; }); // Add service discovery for Aspire