storj/cmd
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
..
certificates certificate/authorization,cmd/certificates: remove gob code 2023-02-08 15:05:40 +00:00
crashcollect crashcollect: process for receiving panics 2021-04-27 18:57:47 +03:00
identity all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
inspector cmd/inspector: move command back from cmd/tools/ 2022-09-07 09:35:12 +00:00
internal/wizard cmd/internal/asset: delete unused code 2021-05-20 18:30:19 +03:00
metric-receiver cmd/metric-receiver: restore minimal metrics server 2020-10-14 20:01:29 +03:00
multinode cmd/multinode: Removes dependency on deprecated identity-dir flag, code and documentation. (#5646) 2023-03-08 13:56:15 +01:00
satellite scripts/tests: fix test-sim-rolling-upgrade.sh 2023-03-09 23:35:36 +00:00
storagenode cmd/storagenode: remove storagenode dockerfiles 2023-01-26 13:49:12 +00:00
storagenode-updater cmd/storagenode-updater: restart storagenode after update on BSD unix derivatives 2023-01-11 12:38:26 +00:00
storj-admin all: fix linter complaints 2020-10-13 15:59:01 +03:00
storj-sim cmd/multinode: Removes dependency on deprecated identity-dir flag, code and documentation. (#5646) 2023-03-08 13:56:15 +01:00
tools cmd/tools: remove migration tool code for generating missing salt 2023-03-10 16:38:54 +00:00
uplink cmd/uplink: support --trace-tags for custom tags 2023-03-13 12:03:39 +00:00
versioncontrol Dockerfiles: switch base image from alpine to Debian 2022-04-05 11:40:44 +00:00