Skip to content

Document async_hooks types purposes #511

Description

@RafaelGSS

I'm working on a profiler tool that uses async_hooks to trace events, however, I'm a bit lost to understand the reason for each type of resource.

In the documentation, we have the list of types: https://nodejs.org/api/async_hooks.html#type but there is no description of each event.

Not sure where I should open this issue, if you think that it's more suitable at the node repository feel free to move.

Activity

  1. RafaelGSS commented on Jan 25, 2022

    @RafaelGSS
    MemberAuthor

    Currently, there are 2 suggestions:

    • Generate the types of documentation based on the definition (we aren't sure if we want to it)
    • Improve the documentation
      • Update the documentation to explicitly says to not rely too much on the types, because it might change arbitrarily.
  2. tony-go commented on Jan 29, 2022

    @tony-go
    Member

    Hi @RafaelGSS 👋

    Do you plan to raise a pull request for the second point?

    I can do it otherwise :) Let me know ^^

  3. RafaelGSS commented on Jan 30, 2022

    @RafaelGSS
    MemberAuthor

    Go ahead :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions