Skip to content

[Nestjs] Instrument Controllers #18485

@nicohrubec

Description

@nicohrubec

I noticed that we do not have any tracing for nest controllers atm. I'd assume that many people use nest as a REST service, in which case controllers are the entry points for any incoming requests.

Solution Brainstorm:

  • All controllers have a @Controller decorator. Individual endpoints also have annotations for the request type (e.g. @Get).
  • We can hook into one of these annotations as we for instance already do for the @Injectable decorator.
  • We need to check if all annotations are actually required or if users can omit them (for instance if we omit the request type annotation it might default to a GET endpoint).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions