(SolrCore prev)
| 1253 | coreMetricManager.registerMetricProducer(newUpdateHandler, Attributes.empty()); |
| 1254 | } |
| 1255 | infoRegistry.put("updateHandler", newUpdateHandler); |
| 1256 | return newUpdateHandler; |
| 1257 | } |
| 1258 | |
| 1259 | /** |
| 1260 | * Initializes the core's {@link SolrCoreMetricManager} with a given configuration. If metric |
| 1261 | * reporters are configured, they are also initialized for this core. |
| 1262 | * |
| 1263 | * @param config the given configuration |
| 1264 | * @return an instance of {@link SolrCoreMetricManager} |
| 1265 | */ |
| 1266 | private SolrCoreMetricManager initCoreMetricManager(SolrConfig config) { |
| 1267 | SolrCoreMetricManager coreMetricManager = new SolrCoreMetricManager(this); |
| 1268 | return coreMetricManager; |
| 1269 | } |
| 1270 | |
| 1271 | @Override |
| 1272 | public void initializeMetrics(SolrMetricsContext parentContext, Attributes attributes) { |
| 1273 | Attributes baseSearcherAttributes = |
| 1274 | Attributes.builder() |
| 1275 | .putAll(attributes) |
| 1276 | .put(CATEGORY_ATTR, Category.SEARCHER.toString()) |
| 1277 | .build(); |
| 1278 | Attributes baseGaugeCoreAttributes = |
no test coverage detected