apm-agent-dotnet icon indicating copy to clipboard operation
apm-agent-dotnet copied to clipboard

Support for Cassandra

Open willsilvano opened this issue 5 years ago • 3 comments

Hi guys! :)

I have verified that the nodejs agent has support for the Cassandra database: https://www.elastic.co/en/blog/elastic-apm-nodejs-agent-1-10-0-released

There is currently a driver for dotnet connection to Cassandra: https://www.nuget.org/packages/CassandraCSharpDriver/

I am using this driver above, and have set up the APM agent for dotnet, but it is only capturing HTTP requests.

Is there any chance of developing support for Cassandra?

willsilvano avatar Dec 18 '19 17:12 willsilvano

Thanks for the feedback, I've added it to our backlog, feel free to jump in and contrib

lreuven avatar Dec 22 '19 13:12 lreuven

I quickly looked at the library - no DiagnosticSource unfortunately :(

gregkalapos avatar Dec 23 '19 12:12 gregkalapos

@willsilvano This could be a candidate using the profiler auto instrumentation approach: #1534. I'm not overly familiar with the Cassandra C# driver, but from a cursory look, session.Execute() and session.ExecuteAsync() look like the methods to instrument.

I don't think Cassandra has come up very often as something we're missing instrumentation for, so this would likely be a low priority at this time.

russcam avatar Nov 04 '21 03:11 russcam