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

feat(client): add debug struct logging #304

Merged
merged 10 commits into from
Mar 26, 2025

Conversation

iapershin
Copy link
Collaborator

@iapershin iapershin commented Feb 25, 2025

Enter [It] add - /home/werf/git/trdl/e2e/tests/client/basic_test.go:17 @ 03/24/25 07:07:12.907
  time=2025-03-24T07:07:13.252-04:00 level=DEBUG msg="Request started" sorce=tuf-client method=GET url=http://0.0.0.0:32782/root.json
  time=2025-03-24T07:07:13.256-04:00 level=DEBUG msg=Connected sorce=tuf-client address=0.0.0.0:32782
  time=2025-03-24T07:07:13.258-04:00 level=DEBUG msg="Request completed" sorce=tuf-client status="200 OK" duration=0.00553685

@iapershin iapershin self-assigned this Feb 25, 2025
@alexey-igrychev alexey-igrychev marked this pull request as draft March 4, 2025 22:02
@iapershin iapershin marked this pull request as ready for review March 24, 2025 11:29
}

func (t *TracingTransport) RoundTrip(req *http.Request) (*http.Response, error) {
log := t.Logger.With("sorce", "tuf-client")
Copy link
Member

Choose a reason for hiding this comment

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

source

@alexey-igrychev alexey-igrychev changed the title feat: add tuf client tracing feat(client): add tuf client tracing Mar 26, 2025
@alexey-igrychev alexey-igrychev changed the title feat(client): add tuf client tracing feat(client): add debug struct logging Mar 26, 2025
iapershin and others added 7 commits March 26, 2025 22:41
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
Signed-off-by: Yaroslav Pershin <62902094+iapershin@users.noreply.github.com>
@alexey-igrychev alexey-igrychev force-pushed the feat--add-tuf-client-tracing branch from 2a5a60d to 2c89afb Compare March 26, 2025 22:41
+
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
+
Signed-off-by: Aleksei Igrychev <aleksei.igrychev@palark.com>
@alexey-igrychev alexey-igrychev merged commit 239b401 into main Mar 26, 2025
11 checks passed
@alexey-igrychev alexey-igrychev deleted the feat--add-tuf-client-tracing branch March 26, 2025 22:57
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.

2 participants