-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add initial OpenCensus tracing support. #5387
Conversation
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Otherwise urls regex matches "com_github_curl = dict" Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically closed because it has not had activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Reopening, tagging myself for initial review @htuch |
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.
Looks good, this is heading in the right direction, seems a very clean integration. Some comments to get started, will review the actual tracer extension implementation next.
@goaway can you also look at the specific tracer extension integration? |
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Thanks for the review comments, @lizan! |
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.
LGTM, defer to @htuch.
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
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.
LGTM modulo a few comments, ready to land when they are resolved. Thanks for all the work in tying this together!
/wait
visibility = ["//visibility:public"], | ||
deps = [ | ||
- "//google/devtools/cloudtrace/v2:tracing_proto", | ||
+ "@googleapis//:tracing_proto", |
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.
[in future we can drop this patch] except for this bit. We have to use a single tracing_proto target to avoid ODR (with lightstep).
The long term fix for this is to upgrade googleapis, but first we need to add Python language support for googleapis, but first we need an updated py_proto_library rule in bazel, per:
envoy/api/bazel/api_build_system.bzl
Lines 23 to 27 in 0739cd6
# TODO(htuch): Convert this to native py_proto_library once | |
# https://github.com/bazelbuild/bazel/issues/3935 and/or | |
# https://github.com/bazelbuild/bazel/issues/2626 are resolved. | |
def api_py_proto_library(name, srcs = [], deps = [], has_services = 0): | |
py_proto_library( |
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.
See also: grpc/grpc#19183
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Only parent context can be invalid. Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
Signed-off-by: Emil Mikulic <g-easy@users.noreply.github.com>
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.
Thanks @g-easy! This was epic, very useful capability to land.
@g-easy this is awesome and with some preliminary testing I was able to simultaneously send traces to Stackdriver and a local Jaeger. Question re: curl version - is there any reason you've used 7.63.0? There have been a number of CVE's addressed in 7.64 and 7.65. Are there features of OpenCensus that require 7.63.0 or can I raise a PR to bump to the latest curl? |
@moderation I think it is just the latest version when this PR is created. Feel free to open a PR to bump it. A quick skim for the CVEs I don't think any affect this use case though. |
@lizan is right. Please go ahead and upgrade curl. In OpenCensus, only the Zipkin exporter uses it. |
Addresses #2456