Poorna
d6ffdbc8fb
admin trace: convert trace type to string in json fmt ( #4029 )
2022-03-25 01:52:53 -07:00
Harshavardhana
a59f9e4d30
add gofumpt support, automated cleanup ( #3911 )
2022-01-06 10:55:40 -08:00
Robert Lützner and Robert Lützner
6e1d044f91
admin-trace: Add missing asterisk to --path example in usage ( #3857 )
...
Limiting tracing to a specific path requires an asterisk at the end. I
don't know if this is a regression or the example was always wrong. I
only ever figured this out by trial and error.
This fixes #3856 .
Co-authored-by: Robert Lützner <robert.luetzner@iternity.com >
2021-11-03 09:34:32 -07:00
Harshavardhana
ae271e7645
add new linters and fix unnecessary type conversions ( #3835 )
2021-10-14 15:33:31 -07:00
Harshavardhana
1f997000a3
trace: multiple values for headers are ',' separated ( #3798 )
2021-09-16 08:55:08 -07:00
Klaus Post
a1ba511f16
trace: Display times in local timezone ( #3750 )
...
Make sure times are converted to local time zone.
2021-06-29 08:48:12 -07:00
Harshavardhana
91efd0c066
migrate mc to minio/pkg ( #3731 )
...
remove all dependency for minio/minio
2021-05-29 09:30:33 -07:00
Harshavardhana
ac08bf41a7
fix: gofmt on some files
2021-05-11 17:46:41 -07:00
Harshavardhana
1402987ccb
change license to AGPLv3
2021-05-11 17:45:08 -07:00
Harshavardhana
6c3ac00e18
update madmin to github.com/minio/madmin-go ( #3710 )
2021-05-06 13:33:17 -07:00
Poorna Krishnamoorthy
c4890d949b
trace: display time in UTC format ( #3708 )
2021-05-03 11:52:16 -07:00
Anis Elleuch
78e3c94f5a
trace: Make evaluation filters more user friendly ( #3642 )
...
Currently trace filters are like OR operations, but I think in debugging
we want AND instead.
Currently, --status-code 503 --path 'bucket/path' will show 503 requests or
requests with 'bucket/path', this PR will require having both conditions
in the requests in order to be shown in the trace.
2021-04-16 08:56:26 -07:00
Anis Elleuch
4380288249
trace: Add support of older admin tarce API ( #3683 )
2021-04-07 12:25:53 -07:00
Harshavardhana
6074aa43ff
add nodeName and path properly for os/storage calls ( #3670 )
2021-03-28 08:07:34 -07:00
Anis Elleuch
9914d28527
trace: Add support of Storage & OS tracing ( #3663 )
2021-03-27 05:38:57 -07:00
Poorna Krishnamoorthy
0ee9471197
trace: fix missing client info for ipv6 ( #3661 )
...
fixes: https://github.com/minio/minio/issues/11833
2021-03-24 03:50:02 -07:00
Anis Elleuch
d759f195f2
trace: Add source IP in verbose mode ( #3612 )
...
Add the source IP information in the REQUEST trace line when the verbose
mode is enabled.
2021-02-12 21:32:08 -08:00
Harshavardhana
1c3e6516f0
allow trace filters on handler names ( #3568 )
...
also convert the filter options to slice flags, for example
if you wish to trace only for status code 404 and 503 then
you would specify the following command
```
mc admin trace --status-code 404 --status-code 503 myminio/
```
Refactor and make implementation more readable.
2021-01-19 02:20:34 -08:00
Anis Elleuch
e7df97d1e0
trace: Add more filters options ( #3556 )
...
Filter options are necessary if the server receives a lot of requests,
especially when the verbose mode is passed.
2021-01-04 21:00:48 -08:00
Anis Elleuch
d4fbfb5975
Show better looking help when a wrong flag is passed ( #3461 )
2020-12-02 22:19:26 -08:00
Harshavardhana
d24de97cde
pretty print KMS key status ( #3412 )
2020-09-23 08:32:57 -07:00
Harshavardhana
b7e4a633d8
rename all 'cannot' messages to 'unable to' ( #3388 )
2020-09-01 15:40:31 -07:00
Harshavardhana
f9dc22561c
fix: mc rb site-wide removal with versioning ( #3355 )
2020-08-12 14:19:10 -07:00
Harshavardhana
0b0acc611f
Revert "cli: Load global flags in initBeforeRunningCmd ( #3283 )" ( #3302 )
...
This reverts commit 712ff33319 .
2020-07-16 11:10:35 -07:00
Anis Elleuch
712ff33319
cli: Load global flags in initBeforeRunningCmd ( #3283 )
...
app.Before receives a cli.Context but without flags parsed. There is no
point calling ctx.Bool() or ctx.IsSet() at that stage.
However, flags are parsed in commands, so minio initialization and
setting global variables (globalJSON, globalQuiet, etc..) can be moved
to the Before function of all commands.
Avoid setting command.Before for non leaf commands, otherwise Before
function will be called multiples times until it reaches the leaf
command.
2020-07-01 17:28:43 -07:00
Harshavardhana
8cae137525
fix all the build errors
2020-04-03 22:22:20 -07:00
Anis Elleuch
64a78e7811
Add global context and adapt context change in admin API ( #3125 )
...
This commit adds a new global context, monitors os signals
and cancels the global context in such cases to exit
on going process gracefully.
It will also update minio-go and adapts the code with
the new context changes in the admin API.
2020-03-21 13:42:41 -07:00
Harshavardhana
9663319e9e
Update mc dependencies to recent dep change on MinIO ( #3026 )
2019-12-31 11:27:59 -08:00
Nitish Tiwari
f6240587db
Fix arrow signs to use more common U+2191 & U+2193 ( #2942 )
2019-10-27 20:55:36 -07:00
poornas
0f8345b207
trace - Add TimeToFirstByte to output in --json mode ( #2904 )
2019-10-09 01:25:54 +05:30
ebozduman
a9c606f119
Customize service help for Windows/Linux users ( #2908 )
2019-09-28 08:33:28 +05:30
Harshavardhana
54ee3a2800
Migrate to go1.13 ( #2888 )
2019-09-09 02:54:43 +05:30
Harshavardhana
5fc35b6682
Fix admin help messages and docs ( #2884 )
2019-09-06 10:07:30 -07:00
Harshavardhana
bd7564a2d4
Add 'mc admin update' command ( #2857 )
...
Also this PR deprecates `service status` command
2019-08-28 15:57:25 -07:00
Sidhartha Mani
64d45ac35a
fix formatting for admin trace ( #2854 )
2019-08-16 16:57:40 -07:00
Harshavardhana
0f360131cb
Remove runtime checks use go build tag ( #2848 )
...
Project can be only built with go1.12 or newer
other build related changes to use new go1.12
features.
Fixes #2815
2019-08-06 15:41:04 -07:00
poornas
b56e297be0
fix admin trace crash on 32 bit systems ( #2847 )
2019-07-31 17:06:42 -07:00
poornas
67dbada736
Minor changes to admin trace output fmt ( #2834 )
2019-07-23 17:31:31 -07:00
poornas
c727be5a48
Add error filter flag to mc admin trace command ( #2824 )
2019-07-21 06:30:33 +01:00
poornas
74a7c3dc9a
Show call stats in admin trace command ( #2823 )
...
- Add call latency, input and output bytes to trace
2019-07-19 02:20:08 +01:00
Harshavardhana
ab3e70ae9f
Fix escape characters in trace command ( #2822 )
2019-07-13 09:07:34 +05:30
poornas
675618574a
Change short trace message display format ( #2798 )
...
to abridge function name,time format and
add client ip in the output
2019-06-24 15:43:23 -07:00
Harshavardhana
d97cfaa55d
Fix trace formatting ( #2805 )
2019-06-19 15:11:03 -07:00
poornas
ca26dac8e2
Add mc admin trace command. ( #2655 )
2019-06-11 16:25:33 -07:00