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

internal/xds/v3: Improve logging on connection close #4993

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

sunjayBhatia
Copy link
Member

  • contour xDS server does not log errors if connection was canceled by client, detected via gRPC code
  • when connection is closed change to debug from info level to avoid log noise
  • add stream open/close logging callbacks for go-control-plane implementation

- contour xDS server does not log errors if connection was canceled by
client, detected via gRPC code
- when connection is closed change to debug from info level to avoid log
noise
- add stream open/close logging callbacks for go-control-plane
implementation

Signed-off-by: Sunjay Bhatia <[email protected]>
@sunjayBhatia sunjayBhatia added the release-note/small A small change that needs one line of explanation in the release notes. label Jan 20, 2023
@sunjayBhatia sunjayBhatia requested a review from a team as a code owner January 20, 2023 20:32
@sunjayBhatia sunjayBhatia requested review from stevesloka and skriss and removed request for a team January 20, 2023 20:32
Signed-off-by: Sunjay Bhatia <[email protected]>
@codecov
Copy link

codecov bot commented Jan 20, 2023

Codecov Report

Merging #4993 (554482a) into main (ae025b7) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4993      +/-   ##
==========================================
+ Coverage   77.56%   77.60%   +0.04%     
==========================================
  Files         139      139              
  Lines       16801    16818      +17     
==========================================
+ Hits        13032    13052      +20     
+ Misses       3514     3512       -2     
+ Partials      255      254       -1     
Impacted Files Coverage Δ
internal/xds/v3/callbacks.go 100.00% <100.00%> (ø)
internal/xds/v3/contour.go 100.00% <100.00%> (+3.22%) ⬆️

Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

Nice, LGTM

@sunjayBhatia sunjayBhatia merged commit bf8ffcc into projectcontour:main Jan 23, 2023
@sunjayBhatia sunjayBhatia deleted the logging-xds-connection branch January 23, 2023 14:24
yangyy93 pushed a commit to projectsesame/contour that referenced this pull request Feb 16, 2023
…4993)

- contour xDS server does not log errors if connection was canceled by
client, detected via gRPC code
- when connection is closed change to debug from info level to avoid log
noise
- add stream open/close logging callbacks for go-control-plane
implementation

Signed-off-by: Sunjay Bhatia <[email protected]>
Signed-off-by: yy <[email protected]>
yangyy93 pushed a commit to projectsesame/contour that referenced this pull request Feb 16, 2023
…4993)

- contour xDS server does not log errors if connection was canceled by
client, detected via gRPC code
- when connection is closed change to debug from info level to avoid log
noise
- add stream open/close logging callbacks for go-control-plane
implementation

Signed-off-by: Sunjay Bhatia <[email protected]>
Signed-off-by: yy <[email protected]>
vmw-yingy pushed a commit to vmw-yingy/contour that referenced this pull request Feb 28, 2023
…4993)

- contour xDS server does not log errors if connection was canceled by
client, detected via gRPC code
- when connection is closed change to debug from info level to avoid log
noise
- add stream open/close logging callbacks for go-control-plane
implementation

Signed-off-by: Sunjay Bhatia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/small A small change that needs one line of explanation in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants