gitops-engine icon indicating copy to clipboard operation
gitops-engine copied to clipboard

feat: add user agent parameter for agent

Open alswl opened this issue 3 years ago • 4 comments

For traffic control and log analysis, we use the UA to identify the client's identity.

This PR allows the user to set up the User Agent by adding a command line parameter, which facilitates tracking and analysis for performance evaluation.

Usage:

./agent --user-agent "argocd-application-controller" ...

alswl avatar Oct 13 '22 13:10 alswl

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Oct 13 '22 13:10 sonarqubecloud[bot]

Codecov Report

Base: 55.46% // Head: 55.46% // No change to project coverage :thumbsup:

Coverage data is based on head (650d39f) compared to base (98ccd3d). Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #472   +/-   ##
=======================================
  Coverage   55.46%   55.46%           
=======================================
  Files          41       41           
  Lines        4504     4504           
=======================================
  Hits         2498     2498           
  Misses       1813     1813           
  Partials      193      193           
Impacted Files Coverage Δ
pkg/cache/cluster.go 54.86% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Oct 13 '22 13:10 codecov[bot]

@zachaller

Hi, could you review this simple pull request?

alswl avatar Nov 03 '22 03:11 alswl

Friendly ping with @alexmt .

alswl avatar Jan 10 '23 03:01 alswl