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

Generalize the gRPC access logger base classes #14469

Merged
merged 2 commits into from
Jan 6, 2021

Conversation

itamarkam
Copy link
Contributor

Commit Message: Generalize the gRPC access logger base classes
Additional Description: Some of the general logging logic was in the classes implementing the gRPC access logger interface (GrpcAccessLoggerImpl and GrpcAccessLoggerCacheImpl). Putting all the (soon to be) shared logic in the base class should make it very easy to create new loggers (see "source/extensions/access_loggers/grpc/grpc_access_log_impl.h/cc" for example).
While moving these things around and chancing some dependencies, I also went ahead and fixed some unused/indirect dependencies.
Risk Level: Low (refactoring)
Testing: Unit tests moved the implementation tests to the base class tests (now that the logic lies there) and simplified the implementing classes' tests.
Docs Changes: None
Release Notes: None
Platform Specific Features: None
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]

@omriz @edrukh @yanavlasov @htuch

@itamarkam itamarkam requested a review from zuercher as a code owner December 17, 2020 17:06
@itamarkam
Copy link
Contributor Author

/assign yanavlasov

@itamarkam
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 14469 in repo envoyproxy/envoy

@yanavlasov
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@itamarkam
Copy link
Contributor Author

@yanavlasov seems like presubmits are still failing (doesn't seem related to my change) - can you please re-run them.
I don't have permissions to do so.

@itamarkam itamarkam requested a review from yanavlasov December 22, 2020 11:31
@yanavlasov
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

yanavlasov
yanavlasov previously approved these changes Dec 22, 2020
@yanavlasov
Copy link
Contributor

@itamarkam would you be able to merge master into this please? Just to see if it fixes the build issue.

@itamarkam
Copy link
Contributor Author

@itamarkam would you be able to merge master into this please? Just to see if it fixes the build issue.

Done.

@yanavlasov
Copy link
Contributor

@itamarkam would you be able to merge master again please? I think the coverage issue was fixed.

Temporary commit

Small fixes

Signed-off-by: Itamar Kaminski <itamark@google.com>

Testing skeleton

Signed-off-by: Itamar Kaminski <itamark@google.com>

Test skeleton

Signed-off-by: Itamar Kaminski <itamark@google.com>

Tests and Access logger cache generalization

Signed-off-by: Itamar Kaminski <itamark@google.com>

Tests done

Signed-off-by: Itamar Kaminski <itamark@google.com>

Tests done after horrible merge

Signed-off-by: Itamar Kaminski <itamark@google.com>

Uncomment something

Signed-off-by: Itamar Kaminski <itamark@google.com>

Cleanups and dependency fixes

Signed-off-by: Itamar Kaminski <itamark@google.com>

Format fix

Signed-off-by: Itamar Kaminski <itamark@google.com>
Signed-off-by: Itamar Kaminski <itamark@google.com>
@itamarkam
Copy link
Contributor Author

Rebased on the master again.

@yanavlasov yanavlasov merged commit 1087eaa into envoyproxy:master Jan 6, 2021
mpuncel added a commit to mpuncel/envoy that referenced this pull request Jan 8, 2021
* master: (48 commits)
  Resolve 14506, avoid libidn2 for our curl dependency (envoyproxy#14601)
  fix new/free mismatch in Mainthread utility (envoyproxy#14596)
  opencensus: deprecate Zipkin configuration. (envoyproxy#14576)
  upstream: clean up code location (envoyproxy#14580)
  configuration impl: add cast for ios compilation (envoyproxy#14590)
  buffer impl: add cast for android compilation (envoyproxy#14589)
  ratelimit: add dynamic metadata to ratelimit response (envoyproxy#14508)
  tcp_proxy: wait for CONNECT response before start streaming data (envoyproxy#14317)
  stream info: cleanup address handling (envoyproxy#14432)
  [deps] update upb to latest commit (envoyproxy#14582)
  Add utility to check whether the execution is in main thread. (envoyproxy#14457)
  listener: undeprecate bind_to_port (envoyproxy#14480)
  Fix data race in overload integration test (envoyproxy#14586)
  deps: update PGV (envoyproxy#14571)
  dependencies: update cve_scan.py for some libcurl 7.74.0 false positives. (envoyproxy#14572)
  Network::Connection: Add L4 crash dumping support (envoyproxy#14509)
  ssl: remember stat names for configured ciphers. (envoyproxy#14534)
  formatter: add custom date formatting to downstream cert start and end dates (envoyproxy#14502)
  feat(lua): allow setting response body when the upstream response body is empty (envoyproxy#14486)
  Generalize the gRPC access logger base classes (envoyproxy#14469)
  ...

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants