Skip to content
New issue

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

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

Already on GitHub? # to your account

Rename metrics to spec and add descriptions #90

Merged
merged 3 commits into from
Jul 14, 2023
Merged

Conversation

laulauland
Copy link
Member

This PR updates metric names according to the latest versions of the spec and adds descriptions for them.

@laulauland laulauland linked an issue Jul 13, 2023 that may be closed by this pull request
2 tasks
export const COUNTER_NAME = "function.calls" as const;
export const HISTOGRAM_NAME = "function.calls.duration" as const;
export const GAUGE_NAME = "function.calls.concurrent" as const;
export const BUILD_INFO_NAME = "build_info" as const;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Like we're using constants for it 👍

@@ -10,7 +19,6 @@ import {
isObject,
isPromise,
} from "./utils";
import { setBuildInfo } from "./buildInfo";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you use Rome's import organizer? Curious what's your experience if so :)

Copy link
Member Author

Choose a reason for hiding this comment

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

This was actually tsserver's own API for organizing imports! :)

@laulauland laulauland merged commit 54e7cc0 into main Jul 14, 2023
@laulauland laulauland deleted the rename-metrics branch July 14, 2023 11:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename metrics
2 participants