Skip to content

Feature Suggestions for Enhancing Recovery Middleware #5

@younesious

Description

@younesious

Hey 👋,

tnx for developing such a useful and cool package! I had a chance to explore it, and I found it so elegant.
I have a few suggestions that I believe could enhance the package even further:

  1. Structured Logging: Adding support for a structured logging library like zap to improve log clarity and include helpful metadata like timestamps.
  2. Customizable Error Responses: Providing options to customize status codes, headers, and error messages in HTTP responses.
  3. Context Propagation in gRPC Middleware: Attaching recovery information to the context for downstream access, e.g., ctx = context.WithValue(ctx, "panicDetails", err).

I think these changes would be useful.
HC and "Fire in the hole" — panic-proof. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions