Skip to content

Commit 439434d

Browse files
committed
chore: print out vars which could be used for a file path
1 parent 9df8495 commit 439434d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/job/tracing.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (e *Executor) startTracingOpenTelemetry(ctx context.Context) (tracetools.Sp
204204
)
205205

206206
stop := func() {
207-
writeGlobalMetricsToStdout()
207+
e.writeGlobalMetricsToStdout()
208208
ctx := context.Background()
209209
_ = spanMetricsProcessor.ForceFlush(ctx)
210210
_ = spanMetricsProcessor.Shutdown(ctx)
@@ -331,7 +331,10 @@ func (e *Executor) implementationSpecificSpanName(otelName, ddName string) strin
331331
}
332332
}
333333

334-
func writeGlobalMetricsToStdout() {
334+
func (e *Executor) writeGlobalMetricsToStdout() {
335+
336+
fmt.Printf("Writing global metrics to %s %s %s\n", e.BuildPath, e.AgentName, e.JobID)
337+
335338
// Gather all metrics from the global registry
336339
metricFamilies, err := prometheus.DefaultGatherer.Gather()
337340
if err != nil {

0 commit comments

Comments
 (0)