diff --git a/reporter/datadog_reporter.go b/reporter/datadog_reporter.go index 26cb9cf..20657be 100644 --- a/reporter/datadog_reporter.go +++ b/reporter/datadog_reporter.go @@ -316,7 +316,7 @@ func (r *DatadogReporter) reportProfile(ctx context.Context) error { tags := strings.Split(config.ValidatedTags(), ";") - customAttributes := []string{"container_id", "container_name", "thread_name"} + customAttributes := []string{"container_id", "container_name", "thread_name", "pod_name"} for _, attr := range customAttributes { tags = append(tags, "ddprof.custom_ctx:"+attr) } @@ -547,7 +547,7 @@ func addTraceLabels(labels map[string][]string, i traceFramesCounts) { } if i.podName != "" { - labels["podName"] = append(labels["podName"], i.podName) + labels["pod_name"] = append(labels["pod_name"], i.podName) } if i.containerID != "" {