Skip to content

v2.0.0

Choose a tag to compare

@gustavofreze gustavofreze released this 28 Aug 13:50
· 11 commits to main since this release
6d14fa8
  • Add the ErrorReporter seam and the ReportedError context every reporter reads, so a handled error reaches error tracking without the middleware knowing the provider.
  • Add the SentryReporter adapter, which either boots the SDK from the deployment values or captures onto a hub the application already holds.
  • Add ReportingFilter, so the consumer decides which handled errors reach the provider and a client error never spends quota.
  • Add ReportingPriority and PrioritizedError, the four level urgency scale stated once in neutral terms and translated by each adapter.
  • Add ReportingContext and ReportingTags, the exception side and request side supplements a report carries, which is how a value resolved below the middleware crosses the PSR-7 immutability gap.
  • Add RouteMiddleware, so a report carries the route the request matched instead of the raw path that names one request rather than one endpoint.
  • Add withMessage, which settles the message the response answers with before the body is built, so no layer above parses and re-encodes it.
  • Validate the headers a mapping rule declares, so a malformed field fails while the table is declared rather than on the request that would return it.