- Notifications
You must be signed in to change notification settings - Fork907
Commit2fdd899
committed
feat(provisioner): propagate trace info
If tracing is enabled, propagate the trace information to the terraformprovisioner via environment variables. This sets the `TRACEPARENT`environment variable using the default W3C trace propagators. Userscan choose to continue the trace by adding new spans in the provisionerby reading from the environment like:ctx := env.ContextWithRemoteSpanContext(context.Background(), os.Environ())1 parent9bc727e commit2fdd899
3 files changed
+8
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| 102 | + | |
102 | 103 |
| |
103 | 104 |
| |
104 | 105 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
| 267 | + | |
| 268 | + | |
267 | 269 |
| |
268 | 270 |
| |
269 | 271 |
| |
| |||
1020 | 1022 |
| |
1021 | 1023 |
| |
1022 | 1024 |
| |
| 1025 | + | |
| 1026 | + | |
1023 | 1027 |
| |
1024 | 1028 |
| |
1025 | 1029 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
156 | 157 |
| |
157 | 158 |
| |
158 | 159 |
| |
| 160 | + | |
159 | 161 |
| |
160 | 162 |
| |
161 | 163 |
| |
| |||
208 | 210 |
| |
209 | 211 |
| |
210 | 212 |
| |
| 213 | + | |
211 | 214 |
| |
212 | 215 |
| |
213 | 216 |
| |
|
0 commit comments
Comments
(0)