mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-02-03 13:11:53 +02:00
20 lines
529 B
Go
20 lines
529 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package tracetransform // import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform"
|
|
|
|
import (
|
|
"go.opentelemetry.io/otel/sdk/instrumentation"
|
|
commonpb "go.opentelemetry.io/proto/otlp/common/v1"
|
|
)
|
|
|
|
func InstrumentationScope(il instrumentation.Scope) *commonpb.InstrumentationScope {
|
|
if il == (instrumentation.Scope{}) {
|
|
return nil
|
|
}
|
|
return &commonpb.InstrumentationScope{
|
|
Name: il.Name,
|
|
Version: il.Version,
|
|
}
|
|
}
|