-
Notifications
You must be signed in to change notification settings - Fork 5.5k
tracing: update opencensus and googleapis, use SetName for operation name #7622
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
Changes from 10 commits
4b80cad
a7bc4c3
d0eb12f
e0cae9c
eb939bd
d50582b
a49cde6
0b76f1d
cf6fa68
3cfba6a
bf085e2
404b7da
e5a4c31
585aab5
7d25a9d
6524c56
7241003
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| def _default_envoy_api_impl(ctx): | ||
| ctx.file("WORKSPACE", "") | ||
| ctx.file("BUILD.bazel", "") | ||
| api_dirs = [ | ||
| "bazel", | ||
| "docs", | ||
| "envoy", | ||
| "examples", | ||
| "test", | ||
| "tools", | ||
| ] | ||
| for d in api_dirs: | ||
| ctx.symlink(ctx.path(ctx.attr.api).dirname.get_child(d), d) | ||
|
|
||
| _default_envoy_api = repository_rule( | ||
| implementation = _default_envoy_api_impl, | ||
| attrs = { | ||
| "api": attr.label(default = "@envoy//api:BUILD"), | ||
| }, | ||
| ) | ||
|
|
||
| def envoy_api_binding(): | ||
| # Treat the data plane API as an external repo, this simplifies exporting the API to | ||
| # https://github.com/envoyproxy/data-plane-api. | ||
| if "envoy_api" not in native.existing_rules().keys(): | ||
| _default_envoy_api(name = "envoy_api") | ||
|
|
||
| native.bind( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to still do this bind? Can we replace the bind uses inside the API tree with the canonical
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would be fine as long as none of downstream envoy repositories refer to the bind. I don't have confidence that is the case, so I left it as-is for backwards compatibility reasons.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm happy to say "go ahead" on this, we don't provide stability guarantees around WORKSPACE and you're moving towards the long-term stable canonical naming convention in Bazel. This is where recursive workspaces would be great.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, grpc_json_transcoder depends on this binding, so I can't remove it without making changes to that repository. Can this be done later since we'll have to make changes to other repositories first?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ack, can you file an issue for cleanup here and tag the site with TODO?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Filed #7719 and referenced it here. |
||
| name = "api_httpbody_protos", | ||
| actual = "@com_google_googleapis//google/api:httpbody_cc_proto", | ||
| ) | ||
| native.bind( | ||
| name = "http_api_protos", | ||
| actual = "@com_google_googleapis//google/api:annotations_cc_proto", | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,4 @@ | ||
| def _default_envoy_api_impl(ctx): | ||
| ctx.file("WORKSPACE", "") | ||
| ctx.file("BUILD.bazel", "") | ||
| api_dirs = [ | ||
| "bazel", | ||
| "docs", | ||
| "envoy", | ||
| "examples", | ||
| "test", | ||
| "tools", | ||
| ] | ||
| for d in api_dirs: | ||
| ctx.symlink(ctx.path(ctx.attr.api).dirname.get_child(d), d) | ||
|
|
||
| _default_envoy_api = repository_rule( | ||
| implementation = _default_envoy_api_impl, | ||
| attrs = { | ||
| "api": attr.label(default = "@envoy//api:BUILD"), | ||
| }, | ||
| ) | ||
| load("@envoy_api//bazel:repositories.bzl", "api_dependencies") | ||
|
|
||
| def envoy_api_dependencies(): | ||
| # Treat the data plane API as an external repo, this simplifies exporting the API to | ||
| # https://github.com/envoyproxy/data-plane-api. | ||
| if "envoy_api" not in native.existing_rules().keys(): | ||
| _default_envoy_api(name = "envoy_api") | ||
|
|
||
| native.bind( | ||
| name = "api_httpbody_protos", | ||
| actual = "@googleapis//:api_httpbody_protos", | ||
| ) | ||
| native.bind( | ||
| name = "http_api_protos", | ||
| actual = "@googleapis//:http_api_protos", | ||
| ) | ||
| api_dependencies() |
Uh oh!
There was an error while loading. Please reload this page.