Skip to content

Commit

Permalink
add links
Browse files Browse the repository at this point in the history
  • Loading branch information
ie-pham committed Dec 28, 2023
1 parent a3ee42a commit 017e400
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/tracegen/parameterized.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ func (g *ParameterizedGenerator) generateSpan(t *TraceParams, dest ptrace.Span)
event := span.Events().AppendEmpty()
event.SetName(random.K6String(12))
event.SetTimestamp(pcommon.NewTimestampFromTime(startTime))
event.Attributes().PutStr(random.K6String(12), random.K6String(12))
event.Attributes().PutStr("event attribute"+random.K6String(5), random.K6String(12))

link := span.Links().AppendEmpty()
link.SetTraceID(traceID)
link.SetSpanID(random.SpanID())
link.Attributes().PutStr(random.K6String(12), random.K6String(12))

status := span.Status()
status.SetCode(1)
Expand Down

0 comments on commit 017e400

Please sign in to comment.