2020-03-23 22:41:10 -07:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2019-12-04 14:00:35 -08:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2020-11-04 18:10:58 +01:00
|
|
|
package oteltest // import "go.opentelemetry.io/otel/oteltest"
|
2019-12-04 14:00:35 -08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2021-02-18 12:59:37 -05:00
|
|
|
"go.opentelemetry.io/otel/attribute"
|
2019-12-04 14:00:35 -08:00
|
|
|
)
|
|
|
|
|
2020-10-16 08:09:27 -07:00
|
|
|
// Event encapsulates the properties of calls to AddEvent.
|
2019-12-04 14:00:35 -08:00
|
|
|
type Event struct {
|
|
|
|
Timestamp time.Time
|
2019-12-19 02:13:05 +08:00
|
|
|
Name string
|
2021-02-18 12:59:37 -05:00
|
|
|
Attributes map[attribute.Key]attribute.Value
|
2019-12-04 14:00:35 -08:00
|
|
|
}
|