2023-05-09 20:19:48 +03:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-04-11 12:46:18 +03:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2023-05-09 20:19:48 +03:00
|
|
|
|
|
|
|
package trace // import "go.opentelemetry.io/otel/sdk/trace"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"go.opentelemetry.io/otel/attribute"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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 []attribute.KeyValue
|
|
|
|
|
|
|
|
// DroppedAttributeCount is the number of attributes that were not
|
|
|
|
// recorded due to configured limits being reached.
|
|
|
|
DroppedAttributeCount int
|
|
|
|
|
|
|
|
// Time at which this event was recorded.
|
|
|
|
Time time.Time
|
|
|
|
}
|