Debian Codegraph @

sdk/trace/link.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package trace // import "go.opentelemetry.io/otel/sdk/trace"
5
6 import (
7 "go.opentelemetry.io/otel/attribute"
8 "go.opentelemetry.io/otel/trace"
9 )
10
11 // Link is the relationship between two Spans. The relationship can be within
12 // the same Trace or across different Traces.
13 type Link struct {
14 // SpanContext of the linked Span.
15 SpanContext trace.SpanContext
16
17 // Attributes describe the aspects of the link.
18 Attributes []attribute.KeyValue
19
20 // DroppedAttributeCount is the number of attributes that were not
21 // recorded due to configured limits being reached.
22 DroppedAttributeCount int
23 }