diff --git a/internal/command/command.go b/internal/command/command.go index 798ffd1423ba4730bb918987b5c560c288e72849..9959784378e795a693750f877b66466309f18b30 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -712,11 +712,11 @@ func (c *Command) logProcessComplete() { if ok { attributes = append(attributes, - attribute.Int64("maxrss", rusage.Maxrss), - attribute.Int64("inblock", rusage.Inblock), - attribute.Int64("oublock", rusage.Oublock), - attribute.Int64("minflt", rusage.Minflt), - attribute.Int64("majflt", rusage.Majflt), + attribute.Int64("maxrss", int64(rusage.Maxrss)), + attribute.Int64("inblock", int64(rusage.Inblock)), + attribute.Int64("oublock", int64(rusage.Oublock)), + attribute.Int64("minflt", int64(rusage.Minflt)), + attribute.Int64("majflt", int64(rusage.Majflt)), ) } if c.cgroupPath != "" {