Skip to content

Commit cba9088

Browse files
committed
make class dynamic
1 parent 41306c5 commit cba9088

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Prometheus.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function renderCollectors(string $urlName = 'default'): string
4848
->filter(fn (MetricType $metricType) => $metricType->getUrlName() === $urlName)
4949
->toArray();
5050

51-
return app(RenderCollectorsAction::class)->execute($collectorsForUrlName);
51+
$renderCollectorsClass = config('prometheus.actions.render_collectors');
52+
53+
return app($renderCollectorsClass)->execute($collectorsForUrlName);
5254
}
5355
}

0 commit comments

Comments
 (0)