Skip to content
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

core: use new OpenCensus stats/tagging API. #3647

Merged
merged 9 commits into from
Nov 7, 2017

Commits on Nov 3, 2017

  1. core: use new OpenCensus stats/tagging API.

    This commit updates gRPC core to use io.opencensus:opencensus-api and
    io.opencensus:opencensus-contrib-grpc-metrics instead of
    com.google.instrumentation:instrumentation-api for stats and tagging. The gRPC
    Monitoring Service continues to use instrumentation-api.
    
    The main changes affecting gRPC:
    
    - The StatsContextFactory is replaced by three objects, StatsRecorder, Tagger,
      and TagContextBinarySerializer.
    
    - The StatsRecorder, Tagger, and TagContextBinarySerializer are never null,
      but the objects are no-ops when the OpenCensus implementation is not
      available.
    
    This commit includes changes written by @songy23 and @sebright.
    sebright committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    f03ae78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e01775 View commit details
    Browse the repository at this point in the history
  3. Remove TODOs about checking stats collection state.

    gRPC shouldn't use the state to determine whether to initialize the
    CensusStatsModule, because the state can be changed at runtime.
    sebright committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    611878c View commit details
    Browse the repository at this point in the history
  4. Refactor the code for overriding the Census implementation in tests.

    This commit adds a method to set the CensusStatsModule on
    AbstractServerImplBuilder and AbstractManagedChannelImplBuilder.  It is simpler
    to set the whole CensusStatsModule than pass in all necessary OpenCensus
    implementation objects.
    sebright committed Nov 3, 2017
    Configuration menu
    Copy the full SHA
    d921df5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ca7ad9a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7fe19a2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    45419c2 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2017

  1. Configuration menu
    Copy the full SHA
    403c6e3 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2017

  1. Configuration menu
    Copy the full SHA
    4f0d7c5 View commit details
    Browse the repository at this point in the history