feat: each error in Sentry names the commit it came from
The API image keeps the commit it was built from (RELEASE, from VCS_REF); the API, the worker and the browser report it as the Sentry release unless the stack sets IMAGE_TAG. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ from uuid import UUID, uuid4
|
||||
from fastapi import APIRouter, Depends, HTTPException, Request
|
||||
from pydantic import Field, field_validator
|
||||
|
||||
from .. import machines, mail
|
||||
from .. import machines, mail, observability
|
||||
from ..core import db
|
||||
from ..core.auth import (CAPABILITIES, MACHINE_QUESTION, audit, can, may_move, may_reorder, password_hash,
|
||||
password_matches, signed_in)
|
||||
@@ -72,7 +72,7 @@ def me(request: Request):
|
||||
# Public by design: the Kanban browser initialises Sentry with these.
|
||||
'sentry_dsn_web': os.environ.get('SENTRY_DSN_WEB', '').strip(),
|
||||
'sentry_environment': os.environ.get('SENTRY_ENVIRONMENT') or ENVIRONMENT,
|
||||
'sentry_release': os.environ.get('IMAGE_TAG', ''),
|
||||
'sentry_release': observability.release() or '',
|
||||
# The machine this session is on, and whether to ask (item 12).
|
||||
'machine': account['machine'], 'machine_question': MACHINE_QUESTION.get(role),
|
||||
'machine_answered': account['machine_answered'],
|
||||
|
||||
Reference in New Issue
Block a user