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

Collect the 'logs_created' metric for the sidecar #390

Merged
merged 7 commits into from
Apr 12, 2024

Conversation

iamluc
Copy link
Contributor

@iamluc iamluc commented Apr 12, 2024

What does this PR do?

Count the number of logs created by the sidecar and send the data as a self-telemetry metric.

Part of https://datadoghq.atlassian.net/browse/AIT-4125
Similar to what is done in dd-trace-php (DataDog/dd-trace-php#2604)

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

How to test the change?

Describe here in detail how the change can be validated.

For Reviewers

  • If this PR touches code that signs or publishes builds or packages, or handles credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

@iamluc iamluc force-pushed the lv/sidecar-logs_created-metric branch from b9dbe10 to 582548a Compare April 12, 2024 09:34
@iamluc iamluc marked this pull request as ready for review April 12, 2024 10:00
@iamluc iamluc requested review from a team as code owners April 12, 2024 10:00
sidecar/src/log.rs Outdated Show resolved Hide resolved
@iamluc iamluc marked this pull request as draft April 12, 2024 11:56
sidecar/src/log.rs Outdated Show resolved Hide resolved
sidecar/src/log.rs Outdated Show resolved Hide resolved
@bwoebi bwoebi marked this pull request as ready for review April 12, 2024 13:58
Copy link
Contributor

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

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

Looks good :-)

@bwoebi bwoebi merged commit 8817770 into main Apr 12, 2024
18 of 19 checks passed
@bwoebi bwoebi deleted the lv/sidecar-logs_created-metric branch April 12, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants