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

HttpSM, HttpTunnel, and Http2Stream debug logging updates #8788

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

bneradt
Copy link
Contributor

@bneradt bneradt commented Apr 11, 2022

When enabling debug logging with the http tag, it is often helpful to be
able to identify logs based on the corresponding state machine ID. This
is especially the case when there is a significant amount of concurrent
traffic such that many logs from different state machines are being
emitted at the same time. This patch updates logging calls to more
consistently add the associated state machine ID for such logs.

@bneradt bneradt added this to the 10.0.0 milestone Apr 11, 2022
@bneradt bneradt self-assigned this Apr 11, 2022
@bneradt bneradt requested a review from masaori335 as a code owner April 11, 2022 22:57
@bneradt bneradt requested a review from zwoop as a code owner April 11, 2022 22:57
When enabling debug logging with the http tag, it is often helpful to be
able to identify logs based on the corresponding state machine ID. This
is especially the case when there is a significant amount of concurrent
traffic such that many logs from different state machines are being
emitted at the same time. This patch updates logging calls to more
consistently add the associated state machine ID for such logs.
@bryancall
Copy link
Contributor

@masaori335 is going to take a look at this

proxy/http/HttpSM.cc Outdated Show resolved Hide resolved
Debug messages already contain the function names, so it's redundant to
specify them in the debug log line. Removing places where this
redundancy existed.
Copy link
Contributor

@masaori335 masaori335 left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@bneradt bneradt merged commit 360aafb into apache:master Apr 18, 2022
@bneradt bneradt deleted the http_sm_log_id branch April 18, 2022 23:16
zwoop pushed a commit that referenced this pull request Apr 20, 2022
When enabling debug logging with the http tag, it is often helpful to be
able to identify logs based on the corresponding state machine ID. This
is especially the case when there is a significant amount of concurrent
traffic such that many logs from different state machines are being
emitted at the same time. This patch updates logging calls to more
consistently add the associated state machine ID for such logs.

Also: debug messages already contain the function names, so it's
redundant to specify them in the debug log line. Removing places where
this redundancy existed.

(cherry picked from commit 360aafb)
@zwoop
Copy link
Contributor

zwoop commented Apr 20, 2022

Cherry-picked to v9.2.x

@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Apr 20, 2022
moonchen pushed a commit to moonchen/trafficserver that referenced this pull request May 26, 2022
* asf/9.2.x:
  Updated ChangeLog
  HttpSM, HttpTunnel, and Http2Stream debug logging updates (apache#8788)
  Fix plugin parent_select failover (apache#8676)
  Adds new plugin, http_stats (apache#8797)
  SIGTERM should cause traffic_manager to exit with status 0 as a shutdown method (apache#8798)
  Avoid allocation when matching hosts for vol lookup (apache#8762)
  Check bounds before accessing Vol::evacuate array (apache#8716)
  Adds a simple tool to generate new escape tables (apache#8783)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants