We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3acf43d commit df0fb6fCopy full SHA for df0fb6f
.werft/util/werft.ts
@@ -107,6 +107,11 @@ export class Werft {
107
}
108
109
public endAllSpans() {
110
+ const traceID = this.rootSpan.spanContext().traceId
111
+ const nowUnix = Math.round(new Date().getTime() / 1000);
112
+ // At the moment we're just looking for traces in a 30 minutes timerange with the specific traceID
113
+ // A smarter approach would be to get a start timestamp from tracing.Initialize()
114
+ exec(`werft log result -d "Honeycomb trace" -c github-check-honeycomb-trace url "https://ui.honeycomb.io/gitpod/datasets/werft/trace?trace_id=${traceID}&trace_start_ts=${nowUnix - 1800}&trace_end_ts=${nowUnix + 5}"`);
115
this.endPhase()
116
this.rootSpan.end()
117
0 commit comments