Skip to content

Add Clone for PrometheusBuilder#655

Open
SozinM wants to merge 1 commit intometrics-rs:mainfrom
SozinM:msozin/add-clone
Open

Add Clone for PrometheusBuilder#655
SozinM wants to merge 1 commit intometrics-rs:mainfrom
SozinM:msozin/add-clone

Conversation

@SozinM
Copy link

@SozinM SozinM commented Dec 15, 2025

Convenience trait.
In my code i'm trying to have global PrometheusBuilder in OnceLock, but i cannot use it until it has Clone.

@tobz
Copy link
Member

tobz commented Jan 12, 2026

@SozinM Sorry about the delay on reviewing this!

I'm curious, though: why is Clone necessary to use it within OnceLock?

@tobz tobz added C-exporter Component: exporters such as Prometheus, TCP, etc. E-simple Effort: simple. T-enhancement Type: enhancement. labels Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-exporter Component: exporters such as Prometheus, TCP, etc. E-simple Effort: simple. T-enhancement Type: enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments