blob: 60a7ed1349b5b9e6e5cd4471234248dff31a2ebc [file] [log] [blame]
Abhay Kumara2ae5992025-11-10 14:02:24 +00001// Copyright The OpenTelemetry Authors
2// SPDX-License-Identifier: Apache-2.0
3
4package trace // import "go.opentelemetry.io/otel/sdk/trace"
5
6import (
7 "time"
8
9 "go.opentelemetry.io/otel/attribute"
10)
11
12// Event is a thing that happened during a Span's lifetime.
13type 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}