Skip to content

Commit

Permalink
exporter/datadogexporter: rename exportTraceMetrics to exportHostMetr…
Browse files Browse the repository at this point in the history
…ics (#18094)

We don't want for it to be confused with APM Stats. This method is
unrelated to APM Stats, which are on occasion referred to as "trace
metrics".
  • Loading branch information
gbbr authored Jan 30, 2023
1 parent 7a5a4ee commit 6994831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/datadogexporter/traces_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ func (exp *traceExporter) consumeTraces(
}
}

exp.exportTraceMetrics(ctx, hosts, tags)
exp.exportHostMetrics(ctx, hosts, tags)
return nil
}

func (exp *traceExporter) exportTraceMetrics(ctx context.Context, hosts map[string]struct{}, tags map[string]struct{}) {
func (exp *traceExporter) exportHostMetrics(ctx context.Context, hosts map[string]struct{}, tags map[string]struct{}) {
now := pcommon.NewTimestampFromTime(time.Now())
var err error
if isMetricExportV2Enabled() {
Expand Down

0 comments on commit 6994831

Please sign in to comment.