Skip to content

Commit d8364fd

Browse files
committed
CM-59285: disable sentry and bump cli to 3.9.3
1 parent 073f78b commit d8364fd

File tree

9 files changed

+4
-85
lines changed

9 files changed

+4
-85
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## [Unreleased]
66

7+
- Remove Sentry integration
8+
- Increase required CLI version to 3.9.3
9+
710
## [1.11.0] - 2025-11-17
811

912
- Increase required CLI version to 3.6.0

src/extension/Cycode.VisualStudio.Extension.14.0-16.0/Cycode.VisualStudio.Extension.14.0-16.0.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@
4545
<ErrorReport>prompt</ErrorReport>
4646
<WarningLevel>4</WarningLevel>
4747
</PropertyGroup>
48-
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
49-
<SentryOrg>cycode</SentryOrg>
50-
<SentryProject>visual-studio-extension</SentryProject>
51-
<SentryUploadSymbols>true</SentryUploadSymbols>
52-
<SentryUploadSources>true</SentryUploadSources>
53-
</PropertyGroup>
5448
<ItemGroup>
5549
<Compile Include="Properties\AssemblyInfo.cs"/>
5650
</ItemGroup>
@@ -76,7 +70,6 @@
7670
<PackageReference Include="Community.VisualStudio.VSCT" Version="16.0.29.6"/>
7771
<PackageReference Include="MdXaml" Version="1.27.0"/>
7872
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0"/>
79-
<PackageReference Include="Sentry" Version="4.9.0"/>
8073
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4"/>
8174
<PackageReference Include="System.Net.Http" Version="4.3.4"/>
8275
</ItemGroup>

src/extension/Cycode.VisualStudio.Extension.17.0/Cycode.VisualStudio.Extension.17.0.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@
4545
<ErrorReport>prompt</ErrorReport>
4646
<WarningLevel>4</WarningLevel>
4747
</PropertyGroup>
48-
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
49-
<SentryOrg>cycode</SentryOrg>
50-
<SentryProject>visual-studio-extension</SentryProject>
51-
<SentryUploadSymbols>true</SentryUploadSymbols>
52-
<SentryUploadSources>true</SentryUploadSources>
53-
</PropertyGroup>
5448
<ItemGroup>
5549
<Compile Include="Properties\AssemblyInfo.cs"/>
5650
</ItemGroup>
@@ -76,7 +70,6 @@
7670
<PackageReference Include="Community.VisualStudio.VSCT" Version="16.0.29.6"/>
7771
<PackageReference Include="MdXaml" Version="1.27.0"/>
7872
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0"/>
79-
<PackageReference Include="Sentry" Version="4.9.0"/>
8073
<PackageReference Include="System.Net.Http" Version="4.3.4"/>
8174
</ItemGroup>
8275
<ItemGroup>

src/extension/Cycode.VisualStudio.Extension.Shared/Constants.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Cycode.VisualStudio.Extension.Shared;
44

55
public static class Constants {
66
public const string AppName = "visual_studio_extension";
7-
public const string RequiredCliVersion = "3.6.0";
7+
public const string RequiredCliVersion = "3.9.3";
88

99
public const string CycodeDomain = "cycode.com";
1010

@@ -18,14 +18,6 @@ public static class Constants {
1818
public const int PluginAutoSaveFlushInitialDelaySec = 0;
1919
public const int PluginAutoSaveFlushDelaySec = 5;
2020

21-
public const string SentryDsn =
22-
"https://091cdc01001e4600a30ac02f1b82c4c5@o1026942.ingest.us.sentry.io/4507543901700096";
23-
24-
public const bool SentryDebug = false;
25-
public const float SentrySampleRate = 1.0f;
26-
public const bool SentrySendDefaultPii = false;
27-
public const bool SentryAutoSessionTracking = true;
28-
2921
public static readonly string PluginPath = GetPluginsPath();
3022
public static readonly string DefaultCliPath = GetDefaultCliPath();
3123

src/extension/Cycode.VisualStudio.Extension.Shared/Cycode.VisualStudio.Extension.Shared.projitems

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
<Compile Include="$(MSBuildThisFileDirectory)Helpers\StringHelper.cs"/>
7373
<Compile Include="$(MSBuildThisFileDirectory)Icons\ExtensionIcons.cs"/>
7474
<Compile Include="$(MSBuildThisFileDirectory)Options\General.cs"/>
75-
<Compile Include="$(MSBuildThisFileDirectory)Sentry\SentryInit.cs"/>
7675
<Compile Include="$(MSBuildThisFileDirectory)ServiceLocator.cs"/>
7776
<Compile Include="$(MSBuildThisFileDirectory)Services\CliDownloadService.cs"/>
7877
<Compile Include="$(MSBuildThisFileDirectory)Services\CliService.cs"/>

src/extension/Cycode.VisualStudio.Extension.Shared/CycodePackage.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using System.Threading;
88
using Cycode.VisualStudio.Extension.Shared.Components.ToolWindows;
99
using Cycode.VisualStudio.Extension.Shared.Options;
10-
using Cycode.VisualStudio.Extension.Shared.Sentry;
1110
using Cycode.VisualStudio.Extension.Shared.Services;
1211
using Cycode.VisualStudio.Extension.Shared.Services.ErrorList;
1312
using Cycode.VisualStudio.Extension.Shared.Services.ErrorTagger;
@@ -34,8 +33,6 @@ protected override async Task InitializeAsync(
3433
Startup.ConfigureServices(serviceCollection);
3534
ServiceLocator.SetLocatorProvider(serviceCollection.BuildServiceProvider());
3635

37-
SentryInit.Init();
38-
3936
ILoggerService logger = ServiceLocator.GetService<ILoggerService>();
4037
logger.Initialize();
4138

src/extension/Cycode.VisualStudio.Extension.Shared/Sentry/SentryInit.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/extension/Cycode.VisualStudio.Extension.Shared/Services/CliService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using Cycode.VisualStudio.Extension.Shared.Cli.DTO.ScanResult.Secret;
1313
using Cycode.VisualStudio.Extension.Shared.DTO;
1414
using Cycode.VisualStudio.Extension.Shared.Helpers;
15-
using Cycode.VisualStudio.Extension.Shared.Sentry;
1615
using Cycode.VisualStudio.Extension.Shared.Services.ErrorList;
1716

1817
namespace Cycode.VisualStudio.Extension.Shared.Services;
@@ -74,10 +73,6 @@ public async Task SyncStatusAsync(CancellationToken cancellationToken = default)
7473

7574
if (!tempState.CliAuthed)
7675
ShowErrorNotification("You are not authenticated in Cycode. Please authenticate");
77-
else {
78-
if (processedResult.Result.UserId != null && processedResult.Result.TenantId != null)
79-
SentryInit.SetupScope(processedResult.Result.UserId, processedResult.Result.TenantId);
80-
}
8176
}
8277

8378
public async Task<bool> DoAuthAsync(CancellationToken cancellationToken = default) {

src/extension/Cycode.VisualStudio.Extension.Shared/Services/LoggerService.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Cycode.VisualStudio.Extension.Shared.DTO;
22
using Microsoft.VisualStudio.Shell.Interop;
3-
using Sentry;
43

54
namespace Cycode.VisualStudio.Extension.Shared.Services;
65

@@ -128,12 +127,5 @@ private void Log(LogLevel level, Exception exception, string message, params obj
128127

129128
_pane?.OutputString(logMessage);
130129
Console.Write(logMessage);
131-
132-
if (level != LogLevel.Error) return;
133-
134-
if (exception != null)
135-
SentrySdk.CaptureException(exception);
136-
else
137-
SentrySdk.CaptureMessage(formattedMessage, SentryLevel.Error);
138130
}
139131
}

0 commit comments

Comments
 (0)