More data in logs

Open
#203 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go, kubernetes

Research direction

Trace the logging around HTTP readiness checks, request creation, response status handling, and the warmup phase described in the issue. Compare the current output with the examples and make the relevant connection, URL, request, and response details visible; done means configuration and Kubernetes debugging provide that context without relying on a black box.

Written by the indexing model from the issue text.

Description

enhancement

It would simplify debuging kubernetes cluster problems / mittens configuration parameter errors when additional data regarding what is going on, at least where it's connecting to and url that is getting fetched / or has problems would be logged.

Current output log


2021/11/29 01:34:45 Wrote file: alive
2021/11/29 01:34:45 []
2021/11/29 01:34:45 Waiting for http target to be ready for a max of 60s
2021/11/29 01:34:46 HTTP target not ready yet...
2021/11/29 01:34:47 HTTP target not ready yet...
2021/11/29 01:34:48 HTTP target not ready yet...


Rational

It's hard to debug configuration (we were working on READY check) when you work with a black box

When log has more data, debugging the problems and finding a solution is much easier.

2021/11/29 01:34:45 Writing file: alive
2021/11/29 01:34:45 Wrote file: alive
2021/11/29 01:34:45 []
2021/11/29 01:34:45 creating httpclient to host: http://apidsp2.xyz.com:80
2021/11/29 01:34:45 Waiting for http target to be ready for a max of 60s
2021/11/29 01:34:46 creating request: http://apidsp2.xyz.com:80/health.aspx
2021/11/29 01:34:46 status code: 404
2021/11/29 01:34:46 HTTP target not ready yet...
2021/11/29 01:34:47 creating request: http://apidsp2.xyz.com:80/health.aspx
2021/11/29 01:34:47 status code: 404
2021/11/29 01:34:47 HTTP target not ready yet...


or output like from the warmup phase:

021/11/29 16:07:00 🔴 http response	89 ms	404	POST	/process.aspx
2021/11/29 16:07:00 🔴 http response	300 ms	404	POST	/process.aspx
2021/11/29 16:07:00 🔴 http response	279 ms	404	POST	/process.aspx
Dominant language
Go
Stars
66
Forks
28
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ExpediaGroup/mittens

All issues in ExpediaGroup/mittens

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.