Sentry

  • Learn about sentry-cli
  • Install CLI
    # Install the cli
    curl -sL https://sentry.io/get-cli/ | bash
    
    # Setup configuration values
    SENTRY_AUTH_TOKEN=<click-here-for-your-token>
    SENTRY_ORG=nifarm
    SENTRY_PROJECT=rufas
    VERSION=`sentry-cli releases propose-version`
    
    # Workflow to create releases
    sentry-cli releases new "$VERSION"
    sentry-cli releases set-commits "$VERSION" --auto
    sentry-cli releases finalize "$VERSION"
    
  • UI setup
    # 2024-09-01 old sentry. Not sure where that came from?
    "SENTRY_DSN": "https:\/\/cbbaf09f34x7@o50x63.ingest.sentry.io\/55x22",
    
    # for v1 functions env does NOT work: SENTRY_DNS, SENTRY_REL, SENTRY_ENV
    # Use config
    firebase -P di-stage functions:config:set \
    sentry.dsn="https://25bx42bb@o488291.ingest.us.sentry.io/60x4" \
    sentry.release="v4.1" \
    sentry.environment="di-stage"