2023-05-09 17:19:48 +00:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-04-11 09:46:18 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2023-05-09 17:19:48 +00:00
|
|
|
|
|
|
|
package trace // import "go.opentelemetry.io/otel/sdk/trace"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.opentelemetry.io/otel/attribute"
|
|
|
|
"go.opentelemetry.io/otel/trace"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Link is the relationship between two Spans. The relationship can be within
|
|
|
|
// the same Trace or across different Traces.
|
|
|
|
type Link struct {
|
|
|
|
// SpanContext of the linked Span.
|
|
|
|
SpanContext trace.SpanContext
|
|
|
|
|
|
|
|
// Attributes describe the aspects of the link.
|
|
|
|
Attributes []attribute.KeyValue
|
|
|
|
|
|
|
|
// DroppedAttributeCount is the number of attributes that were not
|
|
|
|
// recorded due to configured limits being reached.
|
|
|
|
DroppedAttributeCount int
|
|
|
|
}
|