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

Fix Prometheus factory signature #3681

Merged
merged 5 commits into from
May 16, 2022
Merged

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented May 16, 2022

Resolves #3677

  • adds `plugin.Configurable' validation to all factories to avoid re-introducing the bug
  • remove error return value from Prometheus factory and log it as fatal inside the function, similar to all other factories

cc @albertteoh

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro requested a review from a team as a code owner May 16, 2022 00:03
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
albertteoh
albertteoh previously approved these changes May 16, 2022
Copy link
Contributor

@albertteoh albertteoh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@yurishkuro yurishkuro enabled auto-merge (squash) May 16, 2022 00:25
Signed-off-by: Yuri Shkuro <github@ysh.us>
@codecov
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #3681 (a839b57) into main (25558ac) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3681   +/-   ##
=======================================
  Coverage   96.60%   96.60%           
=======================================
  Files         268      268           
  Lines       15715    15717    +2     
=======================================
+ Hits        15181    15183    +2     
  Misses        445      445           
  Partials       89       89           
Impacted Files Coverage Δ
plugin/metrics/disabled/factory.go 100.00% <ø> (ø)
plugin/metrics/factory.go 100.00% <ø> (ø)
plugin/sampling/strategystore/adaptive/factory.go 100.00% <ø> (ø)
plugin/sampling/strategystore/factory.go 100.00% <ø> (ø)
plugin/sampling/strategystore/static/factory.go 83.33% <ø> (ø)
plugin/storage/badger/factory.go 95.80% <ø> (ø)
plugin/storage/cassandra/factory.go 97.08% <ø> (ø)
plugin/storage/es/factory.go 97.61% <ø> (ø)
plugin/storage/factory.go 98.39% <ø> (ø)
plugin/storage/grpc/factory.go 95.08% <ø> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25558ac...a839b57. Read the comment docs.

@yurishkuro yurishkuro disabled auto-merge May 16, 2022 03:27
@yurishkuro yurishkuro merged commit c733708 into jaegertracing:main May 16, 2022
@yurishkuro yurishkuro deleted the fix-3677 branch May 16, 2022 03:28
yurishkuro added a commit to yurishkuro/jaeger that referenced this pull request May 16, 2022
albertteoh pushed a commit to albertteoh/jaeger that referenced this pull request Jul 13, 2022
Signed-off-by: Albert Teoh <see.kwang.teoh@gmail.com>
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.

PROMETHEUS_SERVER_URL broken since 1.34
2 participants