Closed varsanyid closed 2 months ago
Hi,
The getting started docs about the Micrometer plugin indicate that the plugin can be instantiated like this:
MicrometerPlugin micrometerPlugin = MicrometerPlugin.Companion.create(micrometerConfig -> micrometerConfig.registry = registry);
However, the Companion object has no create method as per the latest version of the plugin and can only be created the following way: MicrometerPlugin { it.registry = registry }
Companion
create
MicrometerPlugin { it.registry = registry }
Thanks for reporting @varsanyid, would you like to submit a PR to fix this?
@tipsy sorry about the slow response raised a PR #274 to update the samples
Thank you very much :)
Merged !
Hi,
The getting started docs about the Micrometer plugin indicate that the plugin can be instantiated like this:
MicrometerPlugin micrometerPlugin = MicrometerPlugin.Companion.create(micrometerConfig -> micrometerConfig.registry = registry);
However, the
Companion
object has nocreate
method as per the latest version of the plugin and can only be created the following way:MicrometerPlugin { it.registry = registry }