Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(encoding): implement EncodeLabelKey and EncodeLabelValue for Arc #188

Merged
merged 2 commits into from Jan 30, 2024
Merged

feat(encoding): implement EncodeLabelKey and EncodeLabelValue for Arc #188

merged 2 commits into from Jan 30, 2024

Conversation

apmasell
Copy link
Contributor

Adds blanket implementations to encode reference-counted keys and values.

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you. To get this merged and released:

  • Can you bump the patch version in Cargo.toml?
  • Can you add an entry in CHANGELOG.md?
  • What do you think of adding the same for Rc?

@mxinden
Copy link
Member

mxinden commented Jan 30, 2024

Also please follow up on the DCO CI failure:

https://github.com/prometheus/client_rust/pull/188/checks?check_run_id=20974266838

@apmasell
Copy link
Contributor Author

Updated. I've also added Box. I didn't add Rc initially because I thought these had to be Send.

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the follow ups.

CHANGELOG.md Outdated
Comment on lines 9 to 15
### Added

- Added `EncodeLabelValue` and `EncodeLabelKey` implementations for for `Arc`,
`Rc`, and `Box`.

[PR 188]: https://github.com/prometheus/client_rust/pull/188

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to go into a new [0.22.1] section.

CHANGELOG.md Outdated
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.22.0]

### Added

- Added `EncodeLabelValue` and `EncodeLabelKey` implementations for for `Arc`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Added `EncodeLabelValue` and `EncodeLabelKey` implementations for for `Arc`,
- Added `EncodeLabelValue` and `EncodeLabelKey` implementations for `Arc`,

… `Arc`

Signed-off-by: Andre Masella <andre@masella.name>
@apmasell
Copy link
Contributor Author

Fixed.

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

CHANGELOG.md Show resolved Hide resolved
Signed-off-by: Max Inden <mail@max-inden.de>
@mxinden mxinden merged commit 4eecdc3 into prometheus:master Jan 30, 2024
10 checks passed
@apmasell apmasell deleted the encode_arc branch January 30, 2024 12:55
@mxinden
Copy link
Member

mxinden commented Jan 30, 2024

Published and tagged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants