2021-08-09 07:19:24 +00:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-08-19 08:01:33 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2021-08-09 07:19:24 +00:00
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
package trace // import "go.opentelemetry.io/otel/sdk/trace"
|
2021-08-09 07:19:24 +00:00
|
|
|
|
|
|
|
import (
|
2023-02-01 17:06:36 +00:00
|
|
|
"go.opentelemetry.io/otel/attribute"
|
2021-08-09 07:19:24 +00:00
|
|
|
"go.opentelemetry.io/otel/trace"
|
|
|
|
)
|
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
// 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
|
2021-08-09 07:19:24 +00:00
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
// Attributes describe the aspects of the link.
|
|
|
|
Attributes []attribute.KeyValue
|
2021-08-09 07:19:24 +00:00
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
// DroppedAttributeCount is the number of attributes that were not
|
|
|
|
// recorded due to configured limits being reached.
|
|
|
|
DroppedAttributeCount int
|
2021-08-09 07:19:24 +00:00
|
|
|
}
|