This commit is contained in:
techknowlogick 2021-02-28 18:08:33 -05:00 committed by GitHub
commit 47f6a4ec3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
947 changed files with 26119 additions and 7062 deletions

View file

@ -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.
//