storj/cmd/uplink
Márton Elek 0b66d22be4 cmd/uplink: support --trace-tags for custom tags
We do regular testing with executing uplink. But sometimes the recorded execution time showed spikes.

Would be nice to know the reason of the spikes (just internet blip, or something what we should be worried about).

We can collect distributed traces, but it's not easy to find the right trace in Jaeger.

 * We can provide a random trace-id, but it should be persisted / processed
 * We can also save standard output and use `--trace-verbose` which prints out the used trace id, but it's also complicated to collect all of them in a DB

Would be nice to attach additional metadata to traces to make sure that we can filter all traces of one specific kind of test.

This patch provides this feature:

  * It always adds hostname to the trace (if you opt-in to distributed tracing, which is turned off by default)
  * Additional tags can be defined with CLI flag

Tags can be used to find the right trace in Jaeger (or in Elastic search backend of Jaeger).

Change-Id: I08f10023bbebd783f812cfca95ac6237360ac2b0
2023-03-13 12:03:39 +00:00
..
cmd cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
ulext all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
ulfs cmd/uplink/ulfs: fix listing root on windows 2023-02-03 11:02:17 -05:00
ulloc cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
ultest all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
access_maker.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
access_permissions.go cmd/uplink: better usability for date specification 2023-03-06 13:07:27 +01:00
cmd_access_create.go cmd/uplink: remove io/ioutil 2022-09-27 15:53:07 +00:00
cmd_access_export.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_import.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_inspect_test.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_access_inspect.go go.mod: bump common to latest 2023-02-01 12:33:37 +02:00
cmd_access_list.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_register.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_remove.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_restrict.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_revoke.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_setup.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_access_use.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_cp_test.go cmd/uplink: improve cp behavior 2022-09-27 10:23:41 +00:00
cmd_cp.go cmd/uplink: add buffering while reading from stdin 2022-12-23 16:40:54 +00:00
cmd_ls_test.go cmd/uplink: fix recursive copy and improve tests 2022-05-11 15:17:16 -04:00
cmd_ls.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_mb.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_meta_get.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_mv_test.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
cmd_mv.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_rb.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_rm_test.go cmd/uplink: disable deleting local files 2022-06-27 10:30:04 -04:00
cmd_rm.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
cmd_share_test.go cmd/uplinkng: fix linkshare bugs 2022-03-03 16:00:10 +00:00
cmd_share.go mod: bump common and uplink deps 2023-01-25 13:34:47 -07:00
cmd_version.go go.mod: bump clingy dependency 2022-08-31 10:24:27 +00:00
Dockerfile cmd/uplink: add docker image 2023-01-24 09:48:02 +00:00
external_access.go cmd/uplink: Update error message referring to 'import' 2022-11-25 18:54:51 +01:00
external_config.go cmd/uplink: add eventkit 2022-10-07 12:08:08 -04:00
external_migrate.go cmd/uplink: fix migration for some old configs 2022-02-16 21:13:52 +00:00
external_project.go cmd/uplink: stop using transport.SetConnector 2023-03-06 21:48:26 +00:00
external.go cmd/uplink: support --trace-tags for custom tags 2023-03-13 12:03:39 +00:00
initial_setup.go cmd/uplink: add --analytics flag 2023-01-24 15:33:55 +00:00
main.go cmd/uplink: experimental environment variable to change piece hash algorithm 2022-09-08 10:41:04 +00:00
stdlib_flags_test.go cmd/uplink: better usability for date specification 2023-03-06 13:07:27 +01:00
stdlib_flags.go cmd/uplink: better usability for date specification 2023-03-06 13:07:27 +01:00
tabbed_writer.go cmd/uplinkng: become cmd/uplink 2022-02-09 17:02:21 +00:00
ulimit_other.go all: fix math/rand deprecations 2023-02-17 15:05:54 +02:00
ulimit.go cmd/uplink: raise fd limits 2022-04-27 18:11:44 +00:00