-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
SpanLink
struct to separate span_link.go
file so msgp genera…
…tion works properly
- Loading branch information
Showing
3 changed files
with
89 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016 Datadog, Inc. | ||
|
||
package ddtrace | ||
|
||
// SpanLink represents a reference to a span that exists outside of the trace. | ||
// | ||
//go:generate msgp -unexported -marshal=false -o=span_link_msgp.go -tests=false | ||
|
||
type SpanLink struct { | ||
// TraceID represents the low 64 bits of the linked span's trace id. This field is required. | ||
TraceID uint64 `msg:"trace_id" json:"trace_id"` | ||
// TraceIDHigh represents the high 64 bits of the linked span's trace id. This field is only set if the linked span's trace id is 128 bits. | ||
TraceIDHigh uint64 `msg:"trace_id_high,omitempty" json:"trace_id_high"` | ||
// SpanID represents the linked span's span id. | ||
SpanID uint64 `msg:"span_id" json:"span_id"` | ||
// Attributes is a mapping of keys to string values. These values are used to add additional context to the span link. | ||
Attributes map[string]string `msg:"attributes,omitempty" json:"attributes"` | ||
// Tracestate is the tracestate of the linked span. This field is optional. | ||
Tracestate string `msg:"tracestate,omitempty" json:"tracestate"` | ||
// Flags represents the W3C trace flags of the linked span. This field is optional. | ||
Flags uint32 `msg:"flags,omitempty" json:"flags"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.