发布

  • [NA] [SDK] feat: update Sentry DSN and add error reporting for opik connect CLI (#6335)

    frostbyte_neo 发布于 2026-04-16 15:36:29 +00:00

    • Update sentry dsn

    • [NA] [SDK] feat: add Sentry error reporting for opik connect CLI

    • Capture all exceptions in run_cli_session to Sentry with
      cli_command tag (opik-connect/opik-endpoint) and error context
    • Bypass HTTP 400-403 status code filter for CLI events
    • Add _capture_cli_error helper that sets error_type tag and
      cli_error context for fast triage in Sentry dashboard

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • Fix lint errors

    • feat(cli): chain original exceptions for Sentry visibility

    • Add from e to ClickException raises that wrap caught exceptions
      (pairing.py resolve_project_id, smoke_test.py)
    • Extract cause details (type, message, status_code, body) into
      the cli_error Sentry context for fast triage

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • fix(cli): trim verbose cause details from Sentry context

    Keep only caused_by type and status_code, drop full message and body.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    • fix(cli): use context fallback for cause extraction

    Check both cause and context so we capture the original
    exception even without explicit from e chaining.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com


    Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

    下载附件