Enrich Sentry events with request metadata and clickable links

Set Sentry tags and context from code after the testing-farm-request and coldstore modules load, providing searchable tags and the full redacted API request as structured context.

testing-farm-request module:

  • Tags: request_id, request_type, token_name, api_request_url, compose, arch (comma-joined when multiple environments)
  • Context: full API request under testing_farm_request, with secrets, tmt.environment, security group rules, webhook tokens, api_key, and git URL credentials redacted; oversized string values and keys truncated to 512 characters

coldstore module:

  • New --sentry-tag-name option (default: coldstore_url) to set the cold store URL as a clickable Sentry tag
  • Set to empty string to disable

The redact_request() function follows the nucleus _remove_secrets convention and should eventually move to the testing-farm Python client library.

Companion MR: infrastructure!1293 (merged)

Assisted-by: Claude Code Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com

Merge request reports

Loading