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(runner/metrics): Add metric broker #1496

Merged
merged 11 commits into from
Feb 12, 2025
Merged

Conversation

joschahenningsen
Copy link
Member

depends on #1494, merge after.

Motivation and Context

Description

Steps for Testing

only code review

@joschahenningsen joschahenningsen marked this pull request as ready for review February 12, 2025 19:08
}

// With initializes a new LabelBuilder.
func (b *Broker) With() LabelBuilder {
Copy link
Member

Choose a reason for hiding this comment

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

nit: In rust this would be named

Suggested change
func (b *Broker) With() LabelBuilder {
func (b *Broker) Builder() LabelBuilder {

Copy link
Member Author

Choose a reason for hiding this comment

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

I went for this because it allows using the api like so b.With().Stream(123).Input("rtmp://1.2.3.4/src"), which is shorter and quite naturally readable

Copy link
Member

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

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

LGTM once you have checked if the two nits are something or just false postives from FrankLint2000™️

@joschahenningsen joschahenningsen merged commit 3cda12d into dev Feb 12, 2025
10 checks passed
@joschahenningsen joschahenningsen deleted the feat/runner-metrics branch February 12, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants