router: add more upstream request metadata to tracing spans#8289
router: add more upstream request metadata to tracing spans#8289mattklein123 merged 16 commits intoenvoyproxy:masterfrom
Conversation
0aa3d98 to
5dd146b
Compare
|
Hi @lizan, I'm having trouble with ./tools/check_format.py fix && ./tools/format_python_tools.sh fix |
|
I don't understand this build error either. CLion did not complain. I tried looking at my files but I don't see anything obvious: |
|
Was able to fix format issues by running the formatter via the docker image and then pushing with
|
|
/retest |
|
🤷♀️ nothing to rebuild. |
|
/retest |
|
🐴 hold your horses - no failures detected, yet. |
mattklein123
left a comment
There was a problem hiding this comment.
Generally LGTM with some small comments.
I'm a bit concerned in general about the overall perf of tracing and whether these extra tags should be added in all cases or potentially opt-in. @lizan @jmarantz any thoughts?
Also, you will need full coverage of all of the extra tags you added. Thank you!
/wait
|
I actually found a static function that adds all these tags and takes care of nullptr values for the response headers and trailers. I think I should refactor my changes to just use this function... https://github.com/envoyproxy/envoy/blob/master/source/common/tracing/http_tracer_impl.cc#L141 |
|
@nareddyt +1 sounds like a good idea - sorry I had forgotten about the |
|
Can you take a look at the logic now? Specifically for I still need to add tests. Will add if this structure looks good. |
|
Working on adding tests, will let you know when ready :) |
mattklein123
left a comment
There was a problem hiding this comment.
Thanks, this looks really good. Nice consolidation and cleanup. One test request.
/wait
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
f912fee to
107bdbb
Compare
|
Ready for review! Sorry about the force push, I was trying to rebase with |
|
/retest |
|
🤷♀️ nothing to rebuild. |
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
…xy#8289) Signed-off-by: Teju Nareddy <nareddyt@google.com>
Description: Adds more metadata to spans created by the router for upstream requests. Additional metadata added includes response codes, reset reasons, retries, etc.
Risk Level: Low
Testing: Modified existing tests to check for this span metadata. Added new tests for all branches.
Docs Changes: None
Release Notes: None. Please let me know if this change should have release notes.