Debian Codegraph @

sdk/trace/event.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package trace // import "go.opentelemetry.io/otel/sdk/trace"
5
6 import (
7 "time"
8
9 "go.opentelemetry.io/otel/attribute"
10 )
11
12 // Event is a thing that happened during a Span's lifetime.
13 type Event struct {
14 // Name is the name of this event
15 Name string
16
17 // Attributes describe the aspects of the event.
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
24 // Time at which this event was recorded.
25 Time time.Time
26 }