How to know what package in the dependencies a type comes from


The analyticsQueue receives many entries related to a type LocationMeasurementDevice that cannot be found in the c3Customer or c3Base repository. It must be in the c3Base repo but I don’t have access to it.

How do I find what is triggering these entries? How do I prevent it?



You can find out what package it is defined in by MetadataStore.tag().readType("LocationMeasurementDevice").firstDeclaringPackage

AnalyticsQueue.find() will give you a list of AnalyticsQueueEntry, which contains a context field. context.metricGroup will give you some information of what is triggering it.