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

WIP: Initial draft of telemetry #3822

Closed
wants to merge 1 commit into from
Closed

Conversation

sreepuramsudheer
Copy link
Contributor

Description

[Please describe what this change achieves]

Issues Resolved

[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]

Check List

@sreepuramsudheer sreepuramsudheer requested review from a team as code owners May 30, 2024 14:01
@sreepuramsudheer sreepuramsudheer changed the title Initial draft of telemetry. WIP: Initial draft of telemetry May 30, 2024
Copy link

netlify bot commented May 30, 2024

👷 Deploy Preview for chef-server processing.

Name Link
🔨 Latest commit 572384a
🔍 Latest deploy log https://app.netlify.com/sites/chef-server/deploys/665f0f64b1635f000924d115

@sreepuramsudheer sreepuramsudheer force-pushed the ssudheer/CHEF-12629 branch 2 times, most recently from da9ff9e to 3096fa3 Compare June 3, 2024 14:06
Signed-off-by: sreepuramsudheer <[email protected]>
Copy link

sonarqubecloud bot commented Jun 4, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

SonarQube Quality Gate

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
No Duplication information No Duplication information


-spec token() -> string() | atom().
token() ->
case chef_secrets:get(<<"data_collector">>, <<"token">>) of
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we using data_collector token in telemetry ?


-spec is_enabled() -> boolean().
is_enabled() ->
case application:get_env(chef_telemetry, root_url) of
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we handling empty string cases/invalid url cases ?

Do we need to include this telemetry status in health api ?

@sreepuramsudheer sreepuramsudheer deleted the ssudheer/CHEF-12629 branch July 29, 2024 07:40
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