gs-santry-observability_skill

This skill enhances Sentry observability across Clean Architecture layers by tracing use cases, logging per layer, and capturing user context.

1

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill gilbertopsantosjr/fullstacknextjs --skill gs-santry-observability

  • SKILL.md7.1 KB

Overview

This skill adds Sentry observability tailored to Clean Architecture layers. It provides layer-specific error tracking, transaction and span tracing for Use Cases and repositories, and user context handling for actionable error reports. The goal is clear telemetry for domain, application, infrastructure, and presentation concerns.

How this skill works

Initialize Sentry with environment-aware sampling and global configuration. Wrap Use Case execution in transaction spans, create child spans for domain entity operations and repository calls, and set user context early in procedure chains so subsequent errors carry user metadata. Capture domain exceptions with tags, contexts, and mapped severity levels, and record breadcrumbs at key flow points.

When to use it

  • You want per-layer error insights (domain, application, infrastructure, presentation).
  • You need timing and performance traces for Use Cases and database ops.
  • You want user-aware error reports for server actions and procedures.
  • You need consistent exception severity mapping and contextual tags.
  • You want breadcrumbs to follow user flow and authentication events.

Best practices

  • Set Sentry user context once in the authenticated procedure, not in each action.
  • Wrap Use Case.execute with a transaction span and add child spans for domain and repository work.
  • Tag errors by layer and include minimal context objects (avoid sensitive fields).
  • Map domain exception types to severity levels: validation=warning, not_found=info, business=error.
  • Add breadcrumbs for auth, validation, and key processing steps to reconstruct flow.

Example use cases

  • Trace execution time of a CreateCategory Use Case and surface slow repository writes.
  • Capture a ValidationException with tags and input context when entity creation fails.
  • Set user context during authentication so server action errors include user id and email.
  • Record DB operation spans for CategoryRepository.save and CategoryRepository.findById to monitor latency.
  • Report client-side action errors from an ErrorBoundary with component tags and automatic capture.

FAQ

Scrub or omit passwords, tokens, and PII from contexts and breadcrumbs before sending them to Sentry.

Where should I set the Sentry DSN and sampling rate?

Configure DSN and tracesSampleRate in server-side Sentry.init using environment variables and reduce sampling in production.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational