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

Log API Usage Feature #158

Open
fengxizhou opened this issue Jul 7, 2024 · 0 comments
Open

Log API Usage Feature #158

fengxizhou opened this issue Jul 7, 2024 · 0 comments
Assignees
Labels

Comments

@fengxizhou
Copy link
Contributor

fengxizhou commented Jul 7, 2024

🚀 Motivation and context

Introduce a log_usage feature in the HTA open-source project to track and log various metrics of user interactions and system performance.

Description

The log_usage feature will be designed to collect, store, and analyze data on user interactions and system performance within the HTA project. This will provide valuable insights into how the tool is used, helping to identify areas for improvement and optimize performance.

  • The goal is to add a log_usage decorator which can be used to log the performance of usage patterns of selected APIs.
  • The open-source project provides a default decorator but users can customize the log_usage decorator based on their needs.

Usage:

from hta.utils.log_usage import log_usage
@log_usage
def sample_function(x: int, y: int) -> int:
    return x + y

Alternatives

No response

Additional context

No response

@fengxizhou fengxizhou self-assigned this Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant