2023-05-09 17:19:48 +00:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-04-11 09:46:18 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2023-05-09 17:19:48 +00:00
|
|
|
|
|
|
|
package instrumentation // import "go.opentelemetry.io/otel/sdk/instrumentation"
|
|
|
|
|
2024-11-11 15:16:41 +00:00
|
|
|
import "go.opentelemetry.io/otel/attribute"
|
|
|
|
|
2023-05-09 17:19:48 +00:00
|
|
|
// Scope represents the instrumentation scope.
|
|
|
|
type Scope struct {
|
|
|
|
// Name is the name of the instrumentation scope. This should be the
|
|
|
|
// Go package name of that scope.
|
|
|
|
Name string
|
|
|
|
// Version is the version of the instrumentation scope.
|
|
|
|
Version string
|
|
|
|
// SchemaURL of the telemetry emitted by the scope.
|
|
|
|
SchemaURL string
|
2024-11-11 15:16:41 +00:00
|
|
|
// Attributes of the telemetry emitted by the scope.
|
|
|
|
Attributes attribute.Set
|
2023-05-09 17:19:48 +00:00
|
|
|
}
|