Commit cd50be0
committed
Add TEDGE_TRACE_DIR envvar for outputting a trace file
`TEDGE_TRACE_DIR` environment variable is added to enable trace file
output in addition to already present `--trace-json`. It also allows the
user to specify the directory where the trace file will be written.
I decided on the environment variable because it may be tricky to add
the flag to all of the invocation of thin-edge services, particularly if
we want to trace all the services and when they are started indirectly,
like by systemd.
Signed-off-by: Marcel Guzik <[email protected]>1 parent 47fdf8d commit cd50be0
File tree
1 file changed
+25
-3
lines changed- crates/common/tedge_config/src/system_services
1 file changed
+25
-3
lines changedLines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
44 | 66 | | |
45 | 67 | | |
46 | 68 | | |
| |||
0 commit comments