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

Add debug package #178

Merged
merged 2 commits into from
Jan 13, 2023
Merged

Add debug package #178

merged 2 commits into from
Jan 13, 2023

Conversation

raphael
Copy link
Member

@raphael raphael commented Jan 13, 2023

The debug package provides the following functionality:

  • MountDebugLogEnabler mounts a handler on a HTTP mux to turn on or off debug logs.
  • MountPprofHandlers mounts the pprof handlers on a HTTP mux.
  • LogPayloads is a Goa endpoint middleware that logs request and result payloads.

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2023

Codecov Report

Merging #178 (04144e7) into main (a7acae8) will increase coverage by 0.20%.
The diff coverage is 94.48%.

❗ Current head 04144e7 differs from pull request most recent head 70d6e95. Consider uploading reports for the commit 70d6e95 to get more accurate results

@@            Coverage Diff             @@
##             main     #178      +/-   ##
==========================================
+ Coverage   91.90%   92.10%   +0.20%     
==========================================
  Files          28       32       +4     
  Lines        1495     1622     +127     
==========================================
+ Hits         1374     1494     +120     
- Misses         89       95       +6     
- Partials       32       33       +1     
Flag Coverage Δ
micro 92.10% <94.48%> (+0.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
log/options.go 87.50% <0.00%> (-6.74%) ⬇️
log/context.go 75.75% <66.66%> (-3.41%) ⬇️
debug/debug.go 100.00% <100.00%> (ø)
debug/goa.go 100.00% <100.00%> (ø)
debug/grpc.go 100.00% <100.00%> (ø)
debug/options.go 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

The debug package provides the following functionality:

* MountDebugLogEnabler mounts a handler on a HTTP mux to turn on or off debug logs.
* MountPprofHandlers mounts the pprof handlers on a HTTP mux.
* LogPayloads is a Goa endpoint middleware that logs request and result payloads.
@raphael raphael merged commit 24098ae into main Jan 13, 2023
@raphael raphael deleted the add_debug branch January 13, 2023 07:13
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.

None yet

2 participants