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

[Task]: Remove stopwatch implementation from GitFileUtils #32402

Open
sondermanish opened this issue Apr 4, 2024 · 13 comments
Open

[Task]: Remove stopwatch implementation from GitFileUtils #32402

sondermanish opened this issue Apr 4, 2024 · 13 comments
Assignees
Labels
Backend This marks the issue or pull request to reference server code Git performance Issues related to perceived performance on any git operation Git Product Issues related to version control product Inviting Contribution Issues that we would like contributions to Packages & Git Pod All issues belonging to Packages and Git Task A simple Todo

Comments

@sondermanish
Copy link
Contributor

SubTasks

  • Since stopwatch only sends the metrics to logs, we haven't been able to utilise it properly. Now that the micrometer implementation is in place, we can get rid of the stopwatches from these GitFileUtils.
@sondermanish sondermanish added the Task A simple Todo label Apr 4, 2024
@sondermanish sondermanish self-assigned this Apr 4, 2024
@sondermanish sondermanish added the Git performance Issues related to perceived performance on any git operation label Apr 4, 2024
@github-actions github-actions bot added the Git Platform Issues related to the git & the app platform label Apr 4, 2024
@nidhi-nair nidhi-nair added Backend This marks the issue or pull request to reference server code Inviting Contribution Issues that we would like contributions to labels Aug 8, 2024
@github-actions github-actions bot added the Git Product Issues related to version control product label Aug 8, 2024
@Sai6347
Copy link

Sai6347 commented Oct 17, 2024

Hi @sondermanish, I am unable to find GitFileUtils, can you check and let me know is this GitFileUtils or FileUtilsCEimpl, GitExecutorCEImpl and can you provide additional details for this?

@Sai6347
Copy link

Sai6347 commented Oct 23, 2024

Hi @sondermanish, @nidhi-nair can you please check and let me know is this GitExecutorCEImpl or not, i am unable to find the GitFileUtils?

@Sai6347
Copy link

Sai6347 commented Oct 24, 2024

Hi @sondermanish, @nidhi-nair is your expectation just to replace the stopwatch with micrometer to get logs or is there anything additional that needs to be done?

@nidhi-nair
Copy link
Contributor

Hi @Sai6347 , apologies for the delay in response. Yes, the expectation is that we switch from the stopwatch implementation to micrometer, and use reactive traces where applicable. Please check references across the project of the .tap() method in reactive chains to help you get started.

@Sai6347
Copy link

Sai6347 commented Oct 24, 2024

Hi @Sai6347 , apologies for the delay in response. Yes, the expectation is that we switch from the stopwatch implementation to micrometer, and use reactive traces where applicable. Please check references across the project of the .tap() method in reactive chains to help you get started.

ok nidhi, let me know is there change in the output logs after changing to micrometer

@Sai6347
Copy link

Sai6347 commented Oct 25, 2024

Hi @nidhi-nair, I have replaced the stopwatch with Micrometer for tracking metrics, but I’m encountering an "Access Denied" issue when trying to check the metrics due to invalid credentials. Could you share any documentation or resources on verifying and comparing these metrics with Micrometer? This would help me confirm if the integration is working correctly.

@Sai6347
Copy link

Sai6347 commented Oct 28, 2024

Hi @nidhi-nair , @sondermanish could you please let me know what are the credentials i need to pass here to check the metrics.
Screenshot from 2024-10-24 22-32-38

@Sai6347
Copy link

Sai6347 commented Oct 29, 2024

Hi @nidhi-nair , @sondermanish could you please let me know what are the credentials i need to pass here to check the metrics. Screenshot from 2024-10-24 22-32-38

Hi @nidhi-nair , @sondermanish could you please help me out to check and verify the metrics

@sondermanish
Copy link
Contributor Author

Hi @Sai6347! Thank you for helping out with this task.

  1. Ideally we would want to remove all GitFileUtils stopwatch implementation and replace that with the micrometer observations as Nidhi already mentioned. Once that is done the timing of a call wouldn't appear on logs but where we send the observability data. In order to log that data Users need to add a few environment variables while starting the app and then they can see the data on the services that they used. I.e. Appsmith team usages new relic for this.

  2. Please create a pr if you haven't created one already, and link it to this issue. I would be able to review and help you merge it.

Looking forward to facilitate your successful contribution.

@Sai6347
Copy link

Sai6347 commented Oct 30, 2024

GitExecutorCEImpl

ok @sondermanish i have understood that, but i have one doubt here i have changed the implementation in GitExecutorCEImpl, because i didn't find any file with GitFileUtils. can you give me clarity on it?

@sondermanish
Copy link
Contributor Author

@Sai6347 Please look for CommonGitFileUtilsCE

@Sai6347
Copy link

Sai6347 commented Oct 30, 2024

@Sai6347 Please look for CommonGitFileUtilsCE

Ok thankyou manish

@Sai6347
Copy link

Sai6347 commented Nov 4, 2024

Hi @sondermanish , @nidhi-nair can you please assign a reviewer to this pull request

@riteshkew riteshkew added the Packages & Git Pod All issues belonging to Packages and Git label Nov 18, 2024
@github-actions github-actions bot removed the Git Platform Issues related to the git & the app platform label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend This marks the issue or pull request to reference server code Git performance Issues related to perceived performance on any git operation Git Product Issues related to version control product Inviting Contribution Issues that we would like contributions to Packages & Git Pod All issues belonging to Packages and Git Task A simple Todo
Projects
None yet
Development

No branches or pull requests

4 participants