relay icon indicating copy to clipboard operation
relay copied to clipboard

fix(metrics): remove Redis spans from Queries insights module

Open mjq opened this issue 1 year ago • 2 comments

Redis spans were intended to be filtered out of the Queries insights module, since it currently only supports SQL. This used to work via a check for *redis* in the span op. With the JS SDK's v8 release the span op for redis spans became simply db and Redis spans starting showing up in the Queries module.

JS v8 follows the OTel standard of setting the db.system attribute to "redis", so we can use that as a secondary check to bring back the expected filtering.

mjq avatar Jul 05 '24 18:07 mjq

The strange thing is, I don't think db.redis was ever omitted from tag extraction, the only check for *redis* is when extracting the span.description tag! I think what's been happening is that we're extracting tags for db.redis but none of them have a span.description tag, so they don't show up in the module. In the V8 SDK the op is "db" which means the spans get metrics buckets and a span.description tag, so they show up in the UI all of a sudden.

The Cardinality Analyzer actually confirms this, there are metric buckets with the "db.redis" op. If true, we should ... probably stop extracting those, by adding "*redis*" to DISABLED_DATABASES?

gggritso avatar Jul 05 '24 19:07 gggritso

@mjq is this PR still relevant, or can we close it?

jjbayer avatar Oct 07 '24 08:10 jjbayer

@mjq Please, reopen when you would like to get this over the finish line. Thanks!

olksdr avatar Nov 04 '24 09:11 olksdr