ddtrace/tracer: report number of instrumentations used as health metric#3021
ddtrace/tracer: report number of instrumentations used as health metric#3021hannahkm wants to merge 7 commits intov1-maintenancefrom
Conversation
BenchmarksBenchmark execution time: 2024-12-17 21:50:35 Comparing candidate commit 0327e10 in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 58 metrics, 0 unstable metrics. scenario:BenchmarkSetTagStringer-24
|
Datadog ReportBranch report: ✅ 0 Failed, 5113 Passed, 70 Skipped, 2m 27s Total Time |
mtoffl01
left a comment
There was a problem hiding this comment.
2 comments.
- I thought the tag name we agreed upon was
integration, notinstrumentation😆 . Whatever it is, it should be consistent between your PR and mine. That way, users can more effectively correlate their data. - I wonder if iterating over all integrations (
for name, conf := range c.integrations) will introduce a performance cost that is.. not worth it. We can get this information from startup logs (Limitations: We need to solicit these logs from the customer and they can be disabled [rare]) and we can get this information from telemetry (Limitations: .... Metabase is not the easiest to use...). I'm not even sure that a "metric" is the right data type to support this information. Curious what other team members, e.g. @darccio or @rodfalcon think about this.
|
@mtoffl01 Ah, you're right. All these I-words look the same 😵 . Let me adapt that. Regarding your second point, I was hoping that, by putting the for loop into
Yeah... is this even a health metric? 🤔 |
|
Closing due to age; I don't think this ended up being a good health metric. We can revisit this if there's interest in the future. |
What does this PR do?
Creates and reports a new health metric,
datadog.tracer.instrumentations, that counts the number of contribs the user is implementing.The metric will contain the tags
instrumentationandversion. Theinstrumentationtag contains the name of the contrib that the user has implemented, for examplechiorhttp. Theversiontag will contain the version of the contrib package that the user has imported into their code.Motivation
This information is currently in the startup logs, but we want to also give this to our support teams without the extra step of requesting this info from the customer.
Reviewer's Checklist
v2-devbranch and reviewed by @DataDog/apm-go.Unsure? Have a question? Request a review!