Skip to content

Commit

Permalink
updating encoder to omitempty for spanlinks in ddtrace.span
Browse files Browse the repository at this point in the history
  • Loading branch information
mhlidd committed Oct 25, 2024
1 parent d332903 commit 3a74a18
Show file tree
Hide file tree
Showing 7 changed files with 805 additions and 46 deletions.
28 changes: 14 additions & 14 deletions ddtrace/tracer/civisibility_tslv_msgp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ddtrace/tracer/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type span struct {
TraceID uint64 `msg:"trace_id"` // lower 64-bits of the root span identifier
ParentID uint64 `msg:"parent_id"` // identifier of the span's direct parent
Error int32 `msg:"error"` // error status of the span; 0 means no errors
SpanLinks []ddtrace.SpanLink `msg:"span_links"` // links to other spans
SpanLinks []ddtrace.SpanLink `msg:"span_links,omitempty"` // links to other spans

goExecTraced bool `msg:"-"`
noDebugStack bool `msg:"-"` // disables debug stack traces
Expand Down
39 changes: 22 additions & 17 deletions ddtrace/tracer/span_msgp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3a74a18

Please sign in to comment.