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
Stats from database/sql #2303
Comments
Thanks for the suggestion! I like the idea. @DataDog/tracing-go What do y'all think? Do we already do metrics for other contrib packages? Or only the runtime metrics stuff? |
Thanks for reaching out. We're currently looking into this, in particular we're curious if any of the other language tracers are sending metrics for their contribs. We send runtime metrics about tracers, but don't have any prior art for doing this in dd-trace-go. We're also looking into whether other products already provide this kind of data. We'll get back in touch! |
Hey @mtoffl01 👋🏻 I seen you’ve made some great progress on this recently. Very excited! Do you have an ETA when this will be available in one of the releases? Thanks again! |
Hey @jared-mackey, the feature is slated to be included in the next release (v1.63.0)! We would greatly appreciate your feedback once you have the chance to upgrade and test the feature out. |
Hi @mtoffl01, I seen it just released (🎉), but I am not quite sure I know how to use it. I have runtime metrics enabled already from previous usages and have added the |
@jared-mackey There is documentation for use, here: https://pkg.go.dev/gopkg.in/DataDog/dd-trace-go.v1@v1.63.0/contrib/database/sql#WithDBStats Have you looked for metrics prefixed with
|
Hi @mtoffl01, thanks for those details. This is working for me on my local machine but not in my deployed environments (which is where I was testing yesterday) and I cannot figure out why. Does it require a specific agent version or anything of the likes? I see "Reporting DB.Stats..." when running with debug enabled but I don't see them come through. I am receiving other metrics just fine (including golang runtime ones). I am using the unix socket both locally and in the deployed environment. |
Ah, I figured it out. My local had the agent listening on So it seems like there may be 2 bugs.
|
Closing as the feature request is complete. Any bug or issue, please fill a new one. |
Hi, first thanks for all the hard work here. This is a great package.
Maybe it exists and I just missed it, but could we periodically report stats from database/sql as metrics automatically for instrumented pools?
The text was updated successfully, but these errors were encountered: