-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Bump OTEL version to latest #2355
Conversation
This has been unblocked by: open-telemetry/opentelemetry-collector#1574 I have been working through the Jaeger Otel Collector integration and would like to give this PR a review when its ready. |
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
a7a61e5
to
cbde9f0
Compare
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@joe-elliott would you like to review? I have updated the PR |
We might have to update proto
|
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
The issue is solved by Weird is that the badger test fails on
|
Seems like a problem with |
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
pinning the gogo and protobuf verisons that are currently used in Jaeger worked. We should upgrade proto the grpc deps in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly just follows from upstream changes. Overall looks good, but had a few comments/questions.
Makefile
Outdated
@@ -165,7 +165,8 @@ lint-gosec: | |||
.PHONY: lint-staticcheck | |||
lint-staticcheck: | |||
@cat /dev/null > $(LINT_LOG) | |||
time staticcheck ./... \ | |||
# TODO remove SA1019 once https://github.com/golang/protobuf/issues/1077 is resolved | |||
time staticcheck -checks=-SA1019 ./... \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of ignoring SA1019
universally does it make more sense to add the offending files to the list below?
| grep -v \
-e model/model.pb.go \
-e model/prototest/model_test.pb.go \
-e thrift-gen/ \
The other two files (cmd/collector/app/zipkin/http_handler_test.go, model/ids_test.go) are not autogenerated and could have nolint
directives added. Although to keep things in one spot, might be better to add all three here with a note to remove once golang/protobuf#1077 is resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to be needed after I removed proto version bump. I will remove it for now.
We will run into this when upgrading to the newer proto.
factories.Receivers["jaeger"] = &jaegerreceiver.Factory{ | ||
Wrapped: jaegerRec, | ||
Wrapped: otelJaegerReceiver.NewFactory(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously the same factory was passed into both jaegerreceiver.Factory shims. I don't see any harm in doing it this way, and actually prefer this stylistically. Unsure if there are consequences I'm unaware of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They removed factory types and instead they use just factory method from the helper package.
@@ -15,29 +15,31 @@ | |||
package resourceprocessor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clever reuse of the otel resource processor. As far as I can tell this is being configured to support agent tags?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To inject tags passed as flags or env property. The OTEL collector does not support flags or env vars at the moment.
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Codecov Report
@@ Coverage Diff @@
## master #2355 +/- ##
=======================================
Coverage 95.60% 95.60%
=======================================
Files 206 206
Lines 10549 10549
=======================================
Hits 10085 10085
+ Misses 396 395 -1
- Partials 68 69 +1
Continue to review full report at Codecov.
|
Blocked by open-telemetry/opentelemetry-collector#1411