o11y-8.x-1.x-dev/modules/o11y_metrics/modules/o11y_metrics_cache/o11y_metrics_cache.install
modules/o11y_metrics/modules/o11y_metrics_cache/o11y_metrics_cache.install
<?php
/**
* @file
* This is the Prometheus Exporter module for exporting metrics.
*/
use Drupal\o11y_metrics_cache\Cache\CacheBackendWrapper;
use Drupal\o11y_metrics_cache\Cache\CacheMetricsCacheTagsInvalidator;
/**
* Implements hook_uninstall().
*
* Clean state in prometheus storage.
*/
function o11y_metrics_cache_uninstall($is_syncing) {
if ($is_syncing) {
return;
}
$promBridge = \Drupal::service('o11y_metrics.prometheus_bridge');
$promBridge->removeMetricsOfSource(CacheBackendWrapper::class);
$promBridge->removeMetricsOfSource(CacheMetricsCacheTagsInvalidator::class);
}
