mirror of
https://github.com/go-gitea/gitea
synced 2025-07-26 04:08:35 +00:00
go1.16 (#14783)
This commit is contained in:
13
vendor/go.opentelemetry.io/otel/trace/trace.go
generated
vendored
13
vendor/go.opentelemetry.io/otel/trace/trace.go
generated
vendored
@@ -21,6 +21,7 @@ import (
|
||||
"encoding/json"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"go.opentelemetry.io/otel/codes"
|
||||
"go.opentelemetry.io/otel/label"
|
||||
@@ -440,6 +441,18 @@ type Span interface {
|
||||
SetAttributes(kv ...label.KeyValue)
|
||||
}
|
||||
|
||||
// Event is a thing that happened during a Span's lifetime.
|
||||
type Event struct {
|
||||
// Name is the name of this event
|
||||
Name string
|
||||
|
||||
// Attributes describe the aspects of the event.
|
||||
Attributes []label.KeyValue
|
||||
|
||||
// Time at which this event was recorded.
|
||||
Time time.Time
|
||||
}
|
||||
|
||||
// Link is the relationship between two Spans. The relationship can be within
|
||||
// the same Trace or across different Traces.
|
||||
//
|
||||
|
Reference in New Issue
Block a user