You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-07-17 01:12:45 +02:00
add support for Link. (#80)
* add support for Link. * add AddLink to mockSpan * update api documentation.
This commit is contained in:
@ -107,3 +107,11 @@ func (mockSpan) Tracer() trace.Tracer {
|
||||
// Event does nothing.
|
||||
func (mockSpan) AddEvent(ctx context.Context, msg string, attrs ...core.KeyValue) {
|
||||
}
|
||||
|
||||
// AddLink does nothing.
|
||||
func (mockSpan) AddLink(link trace.Link) {
|
||||
}
|
||||
|
||||
// Link does nothing.
|
||||
func (mockSpan) Link(sc core.SpanContext, attrs ...core.KeyValue) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user