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

ddtrace/tracer: runtime metrics v2 (exclude from release notes) #2772

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

felixge
Copy link
Member

@felixge felixge commented Jul 5, 2024

What does this PR do?

Important: No mention in the release notes for this yet.

Motivation

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@@ -62,6 +62,10 @@ func (tg *TestStatsdClient) Gauge(name string, value float64, tags []string, rat
})
}

func (tg *TestStatsdClient) GaugeWithTimestamp(name string, value float64, tags []string, rate float64, timestamp time.Time) error {
Copy link

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
unused-parameter: parameter 'name' seems to be unused, consider removing or renaming it as _ (revive)

@@ -81,6 +85,10 @@
})
}

func (tg *TestStatsdClient) CountWithTimestamp(name string, value int64, tags []string, rate float64, timestamp time.Time) error {
Copy link

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
unused-parameter: parameter 'name' seems to be unused, consider removing or renaming it as _ (revive)

@@ -47,6 +47,7 @@ func startTelemetry(c *config) {
{Name: "agent_url", Value: c.agentURL.String()},
{Name: "agent_hostname", Value: c.hostname},
{Name: "runtime_metrics_enabled", Value: c.runtimeMetrics},
{Name: "runtime_metrics_v2_enabled", Value: c.runtimeMetricsV2},
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: I think we also have a startup logging thing somewhere that tries to log all the config values. check if we need to log runtimeMetricsV2 there as well.

@felixge felixge changed the title ddtrace/tracer: runtime metrics v2 ddtrace/tracer: runtime metrics v2 (exclude from release notes) Jul 17, 2024
Copy link

This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale Stuck for more than 1 month label Aug 23, 2024
@felixge felixge removed the stale Stuck for more than 1 month label Aug 28, 2024
@pr-commenter
Copy link

pr-commenter bot commented Aug 28, 2024

Benchmarks

Benchmark execution time: 2024-10-23 14:36:41

Comparing candidate commit 535a60a in PR branch felix.geisendoerfer/PROF-8665-experimental-runtime-v2-metrics with baseline commit 2edf445 in branch main.

Found 1 performance improvements and 0 performance regressions! Performance is the same for 57 metrics, 1 unstable metrics.

scenario:BenchmarkInjectW3C-24

  • 🟩 execution_time [-285.292ns; -249.508ns] or [-6.580%; -5.754%]

Copy link

@anatolebeuzon anatolebeuzon left a comment

Choose a reason for hiding this comment

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

lgtm! (just need to fix the failing CI tests)

Copy link

This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale Stuck for more than 1 month label Sep 18, 2024
@darccio
Copy link
Member

darccio commented Oct 1, 2024

@felixge When it's planned to open the PR for review/merge?

@darccio darccio added do-not-merge/WIP and removed stale Stuck for more than 1 month labels Oct 1, 2024
@felixge
Copy link
Member Author

felixge commented Oct 13, 2024

I'm planning to merge this merged, probably in 1.5 weeks from now (got time blocked to work on this project every 2 weeks).

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.

4 participants