diff --git a/testbed/datasenders/syslog.go b/testbed/datasenders/syslog.go index 3e67ba23208b..3417d9bbc390 100644 --- a/testbed/datasenders/syslog.go +++ b/testbed/datasenders/syslog.go @@ -89,7 +89,7 @@ func (f *SyslogWriter) GenConfigYAMLStr() string { `, f.network, f.GetEndpoint()) } func (f *SyslogWriter) Send(lr plog.LogRecord) error { - ts := time.Unix(int64(lr.Timestamp()/1000000000), int64(lr.Timestamp()%100000000)).Format(time.RFC3339Nano) + ts := time.Unix(int64(lr.Timestamp()/1_000_000_000), int64(lr.Timestamp()%1_000_000_000)).Format(time.RFC3339Nano) sdid := strings.Builder{} sdid.WriteString(fmt.Sprintf("%s=\"%s\" ", "trace_id", lr.TraceID())) sdid.WriteString(fmt.Sprintf("%s=\"%s\" ", "span_id", lr.SpanID())) diff --git a/testbed/datasenders/tcpudp.go b/testbed/datasenders/tcpudp.go index 615b4308b052..7ed2af93a50f 100644 --- a/testbed/datasenders/tcpudp.go +++ b/testbed/datasenders/tcpudp.go @@ -88,7 +88,7 @@ func (f *TCPUDPWriter) GenConfigYAMLStr() string { `, f.network, f.GetEndpoint()) } func (f *TCPUDPWriter) Send(lr plog.LogRecord) error { - ts := time.Unix(int64(lr.Timestamp()/1000000000), int64(lr.Timestamp()%100000000)).Format(time.RFC3339Nano) + ts := time.Unix(int64(lr.Timestamp()/1_000_000_000), int64(lr.Timestamp()%1_000_000_000)).Format(time.RFC3339Nano) sdid := strings.Builder{} sdid.WriteString(fmt.Sprintf("%s=\"%s\" ", "trace_id", traceutil.TraceIDToHexOrEmptyString(lr.TraceID()))) sdid.WriteString(fmt.Sprintf("%s=\"%s\" ", "span_id", traceutil.SpanIDToHexOrEmptyString(lr.SpanID())))