blob: c03bdc90f68a24403cf9598f685282aff5aa5642 [file] [log] [blame]
Abhay Kumar40252eb2025-10-13 13:25:53 +00001// Copyright The OpenTelemetry Authors
2// SPDX-License-Identifier: Apache-2.0
3
4package trace // import "go.opentelemetry.io/otel/sdk/trace"
5
6import (
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.
13type 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}