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

Check missing server URL in ES OTEL client #2411

Merged
merged 2 commits into from
Aug 24, 2020

Conversation

pavolloffay
Copy link
Member

Signed-off-by: Pavol Loffay ploffay@redhat.com

@joe-elliott could you please review?

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

Nice. Looks good to me.

@yurishkuro
Copy link
Member

Lint Failures
cmd/opentelemetry/app/internal/esclient/client.go:30:5: var errMissingUrl should be errMissingURL

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@codecov
Copy link

codecov bot commented Aug 24, 2020

Codecov Report

Merging #2411 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2411      +/-   ##
==========================================
- Coverage   95.56%   95.55%   -0.01%     
==========================================
  Files         208      208              
  Lines       10676    10676              
==========================================
- Hits        10202    10201       -1     
  Misses        401      401              
- Partials       73       74       +1     
Impacted Files Coverage Δ
cmd/query/app/server.go 91.11% <0.00%> (-2.23%) ⬇️
...lugin/sampling/strategystore/adaptive/processor.go 99.20% <0.00%> (-0.80%) ⬇️
plugin/storage/integration/integration.go 80.86% <0.00%> (+0.47%) ⬆️
plugin/storage/badger/spanstore/reader.go 96.79% <0.00%> (+0.64%) ⬆️

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 e7f5227...822f0bd. Read the comment docs.

@@ -27,6 +27,8 @@ import (
"github.com/jaegertracing/jaeger/pkg/es/config"
)

var errMissingURL = fmt.Errorf("missing Elasticsearch URL")
Copy link
Member

Choose a reason for hiding this comment

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

nit: errors.New() is a more idiomatic approach for completely static error messages

@yurishkuro yurishkuro merged commit 6511d44 into jaegertracing:master Aug 24, 2020
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.

3 participants