Skip to content

Commit 71d08c8

Browse files
authored
CM-58972: Remove sentry (#380)
1 parent dcee451 commit 71d08c8

30 files changed

+2
-262
lines changed

cycode/cli/app.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from cycode.cli.printers import ConsolePrinter
2020
from cycode.cli.user_settings.configuration_manager import ConfigurationManager
2121
from cycode.cli.utils.progress_bar import SCAN_PROGRESS_BAR_SECTIONS, get_progress_bar
22-
from cycode.cli.utils.sentry import add_breadcrumb, init_sentry
2322
from cycode.cli.utils.version_checker import version_checker
2423
from cycode.cyclient.cycode_client_base import CycodeClientBase
2524
from cycode.cyclient.models import UserAgentOptionScheme
@@ -143,9 +142,6 @@ def app_callback(
143142
] = None,
144143
) -> None:
145144
"""[bold cyan]Cycode CLI - Command Line Interface for Cycode.[/]"""
146-
init_sentry()
147-
add_breadcrumb('cycode')
148-
149145
ctx.ensure_object(dict)
150146
configuration_manager = ConfigurationManager()
151147

cycode/cli/apps/ai_guardrails/install_command.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
)
1414
from cycode.cli.apps.ai_guardrails.consts import IDE_CONFIGS, AIIDEType
1515
from cycode.cli.apps.ai_guardrails.hooks_manager import install_hooks
16-
from cycode.cli.utils.sentry import add_breadcrumb
1716

1817

1918
def install_command(
@@ -57,8 +56,6 @@ def install_command(
5756
cycode ai-guardrails install --ide all # Install for all supported IDEs
5857
cycode ai-guardrails install --scope repo --repo-path /path/to/repo
5958
"""
60-
add_breadcrumb('ai-guardrails-install')
61-
6259
# Validate inputs
6360
validate_scope(scope)
6461
repo_path = resolve_repo_path(scope, repo_path)

cycode/cli/apps/ai_guardrails/scan/scan_command.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from cycode.cli.apps.ai_guardrails.scan.utils import output_json, safe_json_parse
2626
from cycode.cli.exceptions.custom_exceptions import HttpUnauthorizedError
2727
from cycode.cli.utils.get_api_client import get_ai_security_manager_client, get_scan_cycode_client
28-
from cycode.cli.utils.sentry import add_breadcrumb
2928
from cycode.logger import get_logger
3029

3130
logger = get_logger('AI Guardrails')
@@ -84,8 +83,6 @@ def scan_command(
8483
Example usage (from IDE hooks configuration):
8584
{ "command": "cycode ai-guardrails scan" }
8685
"""
87-
add_breadcrumb('ai-guardrails-scan')
88-
8986
stdin_data = sys.stdin.read().strip()
9087
payload = safe_json_parse(stdin_data)
9188

cycode/cli/apps/ai_guardrails/status_command.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from cycode.cli.apps.ai_guardrails.command_utils import console, validate_and_parse_ide, validate_scope
1111
from cycode.cli.apps.ai_guardrails.consts import IDE_CONFIGS, AIIDEType
1212
from cycode.cli.apps.ai_guardrails.hooks_manager import get_hooks_status
13-
from cycode.cli.utils.sentry import add_breadcrumb
1413

1514

1615
def status_command(
@@ -53,8 +52,6 @@ def status_command(
5352
cycode ai-guardrails status --ide cursor # Check status for Cursor IDE
5453
cycode ai-guardrails status --ide all # Check status for all supported IDEs
5554
"""
56-
add_breadcrumb('ai-guardrails-status')
57-
5855
# Validate inputs (status allows 'all' scope)
5956
validate_scope(scope, allowed_scopes=('user', 'repo', 'all'))
6057
if repo_path is None:

cycode/cli/apps/ai_guardrails/uninstall_command.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
)
1414
from cycode.cli.apps.ai_guardrails.consts import IDE_CONFIGS, AIIDEType
1515
from cycode.cli.apps.ai_guardrails.hooks_manager import uninstall_hooks
16-
from cycode.cli.utils.sentry import add_breadcrumb
1716

1817

1918
def uninstall_command(
@@ -56,8 +55,6 @@ def uninstall_command(
5655
cycode ai-guardrails uninstall --ide cursor # Uninstall from Cursor IDE
5756
cycode ai-guardrails uninstall --ide all # Uninstall from all supported IDEs
5857
"""
59-
add_breadcrumb('ai-guardrails-uninstall')
60-
6158
# Validate inputs
6259
validate_scope(scope)
6360
repo_path = resolve_repo_path(scope, repo_path)

cycode/cli/apps/auth/auth_command.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from cycode.cli.exceptions.handle_auth_errors import handle_auth_exception
55
from cycode.cli.logger import logger
66
from cycode.cli.models import CliResult
7-
from cycode.cli.utils.sentry import add_breadcrumb
87

98

109
def auth_command(ctx: typer.Context) -> None:
@@ -16,7 +15,6 @@ def auth_command(ctx: typer.Context) -> None:
1615
* `cycode auth`: Start interactive authentication
1716
* `cycode auth --help`: View authentication options
1817
"""
19-
add_breadcrumb('auth')
2018
printer = ctx.obj.get('console_printer')
2119

2220
try:

cycode/cli/apps/configure/configure_command.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
get_id_token_input,
1111
)
1212
from cycode.cli.console import console
13-
from cycode.cli.utils.sentry import add_breadcrumb
1413

1514

1615
def _should_update_value(
@@ -39,8 +38,6 @@ def configure_command() -> None:
3938
* `cycode configure`: Start interactive configuration
4039
* `cycode configure --help`: View configuration options
4140
"""
42-
add_breadcrumb('configure')
43-
4441
global_config_manager = CONFIGURATION_MANAGER.global_config_file_manager
4542

4643
current_api_url = global_config_manager.get_api_url()

cycode/cli/apps/ignore/ignore_command.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from cycode.cli.config import configuration_manager
1010
from cycode.cli.logger import logger
1111
from cycode.cli.utils.path_utils import get_absolute_path, is_path_exists
12-
from cycode.cli.utils.sentry import add_breadcrumb
1312
from cycode.cli.utils.string_utils import hash_string_to_sha256
1413

1514
_FILTER_BY_RICH_HELP_PANEL = 'Filter options'
@@ -97,8 +96,6 @@ def ignore_command( # noqa: C901
9796
* `cycode ignore --by-rule GUID`: Ignore rule with the specified GUID
9897
* `cycode ignore --by-package lodash@4.17.21`: Ignore lodash version 4.17.21
9998
"""
100-
add_breadcrumb('ignore')
101-
10299
all_by_values = [by_value, by_sha, by_path, by_rule, by_package, by_cve]
103100
if all(by is None for by in all_by_values):
104101
raise click.ClickException('Ignore by type is missing')

cycode/cli/apps/mcp/mcp_command.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from pydantic import Field
1414

1515
from cycode.cli.cli_types import McpTransportOption, ScanTypeOption
16-
from cycode.cli.utils.sentry import add_breadcrumb
1716
from cycode.logger import LoggersManager, get_logger
1817

1918
try:
@@ -381,8 +380,6 @@ def mcp_command(
381380
cycode mcp # Start with default transport (stdio)
382381
cycode mcp -t sse -p 8080 # Start with Server-Sent Events (SSE) transport on port 8080
383382
"""
384-
add_breadcrumb('mcp')
385-
386383
try:
387384
_run_mcp_server(transport, host, port)
388385
except Exception as e:
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import typer
22

33
from cycode.cli.utils.progress_bar import SBOM_REPORT_PROGRESS_BAR_SECTIONS, get_progress_bar
4-
from cycode.cli.utils.sentry import add_breadcrumb
54

65

76
def report_command(ctx: typer.Context) -> int:
@@ -10,6 +9,5 @@ def report_command(ctx: typer.Context) -> int:
109
Example usage:
1110
* `cycode report sbom`: Generate SBOM report
1211
"""
13-
add_breadcrumb('report')
1412
ctx.obj['progress_bar'] = get_progress_bar(hidden=False, sections=SBOM_REPORT_PROGRESS_BAR_SECTIONS)
1513
return 1

0 commit comments

Comments
 (0)