Skip to content

Adding opencensus grpc plugin with bazel support#15070

Merged
Vizerai merged 8 commits intogrpc:masterfrom
Vizerai:filter_port
Jun 19, 2018
Merged

Adding opencensus grpc plugin with bazel support#15070
Vizerai merged 8 commits intogrpc:masterfrom
Vizerai:filter_port

Conversation

@Vizerai
Copy link
Copy Markdown
Contributor

@Vizerai Vizerai commented Apr 14, 2018

This makes grpc depend on opencensus to build the plugin.

Make file support with git submodule could be added later.


This change is Reviewable

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

1 similar comment
@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

1 similar comment
@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

2 similar comments
@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc-testing

This comment has been minimized.

@grpc grpc deleted a comment from grpc-testing Apr 16, 2018
@grpc grpc deleted a comment from grpc-testing Apr 16, 2018
@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

@markdroth
Copy link
Copy Markdown
Member

Reviewed 1 of 3 files at r18, 1 of 2 files at r19, 1 of 1 files at r20.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks broke.


include/grpcpp/opencensus.h, line 26 at r20 (raw file):

// Registers the OpenCensus plugin with gRPC, so that it will be used for future
// RPCs. This must be called before any views are created on the measures
// defined below. This will only be enabled if the binary includes the

The placement and wording of this comment makes it seem like it applies only to RegisterOpenCensusPlugin(), but it actually applies to everything in this file. Please update it to clarify that.

Also, "this will only be enabled" is a bit imprecise; let's make it clear that these symbols will not actually be present in the library until it was built with the specified target.


Comments from Reviewable

@grpc-testing
Copy link
Copy Markdown

****************************************************************

libgrpc.so

     VM SIZE                                                  FILE SIZE
 ++++++++++++++ GROWING                                    ++++++++++++++
  [NEW]    +193 src/cpp/ext/filters/census/grpc_context.cc    +193  [NEW]
      [NEW]    +113 grpc_census_call_set_context                  +113  [NEW]
      [NEW]     +65 grpc_census_call_get_context                   +65  [NEW]
      [NEW]     +15 [Unmapped]                                     +15  [NEW]
  +0.0%     +16 [None]                                        +120  +0.0%

 -------------- SHRINKING                                  --------------
  [DEL]    -193 src/core/ext/census/grpc_context.cc           -193  [DEL]
      [DEL]    -113 grpc_census_call_set_context                  -113  [DEL]
      [DEL]     -65 grpc_census_call_get_context                   -65  [DEL]
      [DEL]     -15 [Unmapped]                                     -15  [DEL]

  +0.0%     +16 TOTAL                                         +120  +0.0%


****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]



@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

strip_prefix = "benchmark-5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8",
url = "https://github.com/google/benchmark/archive/5b7683f49e1e9223cf9927b24f6fd3d6bd82e3f8.tar.gz",
strip_prefix = "benchmark-9913418d323e64a0111ca0da81388260c2bbe1e9",
url = "https://github.com/google/benchmark/archive/9913418d323e64a0111ca0da81388260c2bbe1e9.tar.gz",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any reason for this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There were incompatibilities with the older version of the library.

strip_prefix = "abseil-cpp-cc4bed2d74f7c8717e31f9579214ab52a9c9c610",
url = "https://github.com/abseil/abseil-cpp/archive/cc4bed2d74f7c8717e31f9579214ab52a9c9c610.tar.gz",
strip_prefix = "abseil-cpp-cd95e71df6eaf8f2a282b1da556c2cf1c9b09207",
url = "https://github.com/abseil/abseil-cpp/archive/cd95e71df6eaf8f2a282b1da556c2cf1c9b09207.tar.gz",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Likewise, any reason for this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There were incompatibilities with the older version of the library.

@markdroth
Copy link
Copy Markdown
Member

Reviewed 15 of 15 files at r21.
Review status: all files reviewed, 4 unresolved discussions (waiting on @markdroth, @Vizerai, @vjpai, @a11r, @dgquintas, and @nicolasnoble)


include/grpcpp/opencensus.h, line 24 at r17 (raw file):

Previously, Vizerai (Jim King) wrote…

Added comment. @nicolasnoble can you give input about how we can ensure this does not get installed in binary distributions?

Still need to resolve this.


include/grpcpp/opencensus.h, line 26 at r20 (raw file):

Previously, markdroth (Mark D. Roth) wrote…

The placement and wording of this comment makes it seem like it applies only to RegisterOpenCensusPlugin(), but it actually applies to everything in this file. Please update it to clarify that.

Also, "this will only be enabled" is a bit imprecise; let's make it clear that these symbols will not actually be present in the library until it was built with the specified target.

Still need to resolve this.


Comments from Reviewable

@nicolasnoble
Copy link
Copy Markdown
Contributor

include/grpcpp/opencensus.h, line 24 at r17 (raw file):

Previously, markdroth (Mark D. Roth) wrote…

Still need to resolve this.

As long as the file aren't listed in the build.yaml, it won't be listed in the distribution systems, such as the Makefile's "install" target.


Comments from Reviewable

@Vizerai
Copy link
Copy Markdown
Contributor Author

Vizerai commented Jun 13, 2018

Review status: all files reviewed, 4 unresolved discussions (waiting on @markdroth, @Vizerai, @vjpai, @a11r, and @dgquintas)


include/grpcpp/opencensus.h, line 26 at r20 (raw file):

Previously, markdroth (Mark D. Roth) wrote…

Still need to resolve this.

Comment has been reworded.


Comments from Reviewable

@grpc-testing
Copy link
Copy Markdown

****************************************************************

libgrpc.so

     VM SIZE                                                  FILE SIZE
 ++++++++++++++ GROWING                                    ++++++++++++++
  [NEW]    +193 src/cpp/ext/filters/census/grpc_context.cc    +193  [NEW]
      [NEW]    +113 grpc_census_call_set_context                  +113  [NEW]
      [NEW]     +65 grpc_census_call_get_context                   +65  [NEW]
      [NEW]     +15 [Unmapped]                                     +15  [NEW]
  +0.0%     +16 [None]                                        +120  +0.0%

 -------------- SHRINKING                                  --------------
  [DEL]    -193 src/core/ext/census/grpc_context.cc           -193  [DEL]
      [DEL]    -113 grpc_census_call_set_context                  -113  [DEL]
      [DEL]     -65 grpc_census_call_get_context                   -65  [DEL]
      [DEL]     -15 [Unmapped]                                     -15  [DEL]

  +0.0%     +16 TOTAL                                         +120  +0.0%


****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]



@grpc-testing
Copy link
Copy Markdown

[trickle] No significant performance differences

@grpc-testing
Copy link
Copy Markdown

[microbenchmarks] No significant performance differences

Copy link
Copy Markdown
Member

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for doing this!

@Vizerai
Copy link
Copy Markdown
Contributor Author

Vizerai commented Jun 14, 2018

Review status: 47 of 48 files reviewed, 4 unresolved discussions (waiting on @markdroth, @vjpai, @a11r, and @dgquintas)


include/grpcpp/opencensus.h, line 24 at r17 (raw file):

Previously, nicolasnoble (Nicolas Noble) wrote…

As long as the file aren't listed in the build.yaml, it won't be listed in the distribution systems, such as the Makefile's "install" target.

Done.


Comments from Reviewable

@nicolasnoble
Copy link
Copy Markdown
Contributor

This is okay, I think.

Copy link
Copy Markdown
Contributor

@vjpai vjpai left a comment

Choose a reason for hiding this comment

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

LGTM

@srini100 srini100 added release notes: no Indicates if PR should not be in release notes and removed release notes: no Indicates if PR should not be in release notes labels Jul 18, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants