-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4b80cad
WIP
kyessenov a7bc4c3
fix envoy_api
kyessenov d0eb12f
use setName from opencensus
kyessenov e0cae9c
fix format
kyessenov eb939bd
fix filter example
kyessenov d50582b
merge fix
kyessenov a49cde6
merge fix
kyessenov 0b76f1d
Merge remote-tracking branch 'upstream/master' into update_opencensus
kyessenov cf6fa68
review feedback
kyessenov 3cfba6a
typo
kyessenov bf085e2
Merge remote-tracking branch 'upstream/master' into update_opencensus
kyessenov 404b7da
review feedback
kyessenov e5a4c31
revert opencensus cpp change
kyessenov 585aab5
add TODO
kyessenov 7d25a9d
Merge remote-tracking branch 'upstream/master' into update_opencensus
kyessenov 6524c56
update workspaces
kyessenov 7241003
move GO_VERSION
kyessenov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,17 @@ | ||
| workspace(name = "envoy") | ||
|
|
||
| load("//bazel:api_binding.bzl", "envoy_api_binding") | ||
|
|
||
| envoy_api_binding() | ||
|
|
||
| load("//bazel:api_repositories.bzl", "envoy_api_dependencies") | ||
|
|
||
| envoy_api_dependencies() | ||
|
|
||
| load("//bazel:repositories.bzl", "GO_VERSION", "envoy_dependencies") | ||
| load("//bazel:repositories.bzl", "envoy_dependencies") | ||
|
|
||
| envoy_dependencies() | ||
|
|
||
| load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies") | ||
|
|
||
| rules_foreign_cc_dependencies() | ||
|
|
||
| load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") | ||
|
|
||
| go_rules_dependencies() | ||
|
|
||
| go_register_toolchains(go_version = GO_VERSION) | ||
|
|
||
| load("@envoy//bazel/toolchains:rbe_toolchains_config.bzl", "rbe_toolchains_config") | ||
| load("//bazel:dependency_imports.bzl", "envoy_dependency_imports") | ||
|
|
||
| rbe_toolchains_config() | ||
| envoy_dependency_imports() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| 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") | ||
|
|
||
| # TODO(https://github.com/envoyproxy/envoy/issues/7719) need to remove both bindings and use canonical rules | ||
| native.bind( | ||
| 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", | ||
| ) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we need to still do this bind? Can we replace the bind uses inside the API tree with the canonical
@com_google_apis//...labels? Same below.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 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.
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.
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.
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.
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?
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.
Ack, can you file an issue for cleanup here and tag the site with TODO?
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.
Filed #7719 and referenced it here.