2021-08-09 07:19:24 +00:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-08-19 08:01:33 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2021-08-09 07:19:24 +00:00
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
package trace // import "go.opentelemetry.io/otel/sdk/trace"
|
2021-08-09 07:19:24 +00:00
|
|
|
|
|
|
|
import (
|
2023-02-01 17:06:36 +00:00
|
|
|
"time"
|
2021-08-09 07:19:24 +00:00
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
"go.opentelemetry.io/otel/attribute"
|
2021-08-09 07:19:24 +00:00
|
|
|
)
|
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
// Event is a thing that happened during a Span's lifetime.
|
|
|
|
type Event struct {
|
|
|
|
// Name is the name of this event
|
|
|
|
Name string
|
2021-08-09 07:19:24 +00:00
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
// Attributes describe the aspects of the event.
|
|
|
|
Attributes []attribute.KeyValue
|
|
|
|
|
|
|
|
// DroppedAttributeCount is the number of attributes that were not
|
|
|
|
// recorded due to configured limits being reached.
|
|
|
|
DroppedAttributeCount int
|
2021-08-09 07:19:24 +00:00
|
|
|
|
2023-02-01 17:06:36 +00:00
|
|
|
// Time at which this event was recorded.
|
|
|
|
Time time.Time
|
2021-08-09 07:19:24 +00:00
|
|
|
}
|