Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: track all API calls MONGOSH-977 #1135

Merged
merged 2 commits into from
Oct 22, 2021
Merged

feat: track all API calls MONGOSH-977 #1135

merged 2 commits into from
Oct 22, 2021

Conversation

addaleax
Copy link
Contributor

Specifically:

  • Rename mongosh:api-call to mongosh:api-call-with-arguments for
    a bit more accuracy, and drop mongosh:deprecated-api-call in
    favor of a more generla mongosh:api-call event that provides
    information useful for telemetry.
  • Track top-level API calls of async APIs, avoiding tracking of
    nested calls and omitting synchronous APIs since they are used
    internally fairly extensively.

Specifically:

- Rename `mongosh:api-call` to `mongosh:api-call-with-arguments` for
  a bit more accuracy, and drop `mongosh:deprecated-api-call` in
  favor of a more generla `mongosh:api-call` event that provides
  information useful for telemetry.
- Track top-level API calls of async APIs, avoiding tracking of
  nested calls and omitting synchronous APIs since they are used
  internally fairly extensively.
Copy link
Contributor

@mcasimir mcasimir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! finally we are able to know which apis are actually used .. also super neat unify calls and deprecations.

packages/shell-api/src/decorators.ts Outdated Show resolved Hide resolved
@addaleax addaleax merged commit fc6f399 into main Oct 22, 2021
@addaleax addaleax deleted the 977-dev branch October 22, 2021 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants