Skip to content

Commit e3467a5

Browse files
hdostTommyCpp
andauthored
Update span.rs
Co-authored-by: Zhongyang Wu <zhongyang.wu@outlook.com>
1 parent 9b8e610 commit e3467a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opentelemetry/src/trace/span.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub trait Span {
154154
where
155155
T: Into<Cow<'static, str>>;
156156

157-
/// Adds a link to another `SpanContext`.
157+
/// Adds [`Link`] to another [`SpanContext`].
158158
///
159159
/// This method allows linking the current span to another span, identified by its `SpanContext`. Links can be used
160160
/// to connect spans from different traces or within the same trace. Attributes can be attached to the link to
@@ -167,6 +167,7 @@ pub trait Span {
167167
/// * `attributes` - A vector of `KeyValue` pairs that describe additional attributes of the link. These attributes
168168
/// can include any contextual information relevant to the link between the spans.
169169
///
170+
/// [`Link`]: crate::trace::Link
170171
fn add_link(&mut self, span_context: SpanContext, attributes: Vec<KeyValue>);
171172

172173
/// Signals that the operation described by this span has now ended.

0 commit comments

Comments
 (0)