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

Stringify non-string job names in push client #296

Merged
merged 2 commits into from
Oct 7, 2023
Merged

Conversation

Sinjo
Copy link
Member

@Sinjo Sinjo commented Oct 7, 2023

We do this to all other label values in the client and we should make this one consistent. Right now it's particularly surprising that passing a symbol as the job name results in an error like:

undefined method `include?' for :foo:Symbol (NoMethodError)

Fixes #295

Sinjo added 2 commits October 7, 2023 15:49
We do this to all other label values in the client and we should make
this one consistent. Right now it's particularly surprising that passing
a symbol as the job name results in an error like:

```
undefined method `include?' for :foo:Symbol (NoMethodError)
```

Signed-off-by: Chris Sinjakli <chris@sinjakli.co.uk>
Signed-off-by: Chris Sinjakli <chris@sinjakli.co.uk>
@Sinjo Sinjo requested a review from dmagliola October 7, 2023 14:57
@Sinjo Sinjo merged commit d08e7b3 into main Oct 7, 2023
1 check passed
@Sinjo Sinjo deleted the sinjo-stringify-job-name branch October 7, 2023 15:16
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.

Job name for pushgateway can't be a symbol
2 participants