Debian Codegraph @

schema/v1.0/ast/common.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package ast // import "go.opentelemetry.io/otel/schema/v1.0/ast"
5
6 // RenameAttributes corresponds to a section that describes attribute renaming.
7 type RenameAttributes struct {
8 AttributeMap AttributeMap `yaml:"attribute_map"`
9 }
10
11 // AttributeMap corresponds to a section representing a mapping of attribute names.
12 // The keys are the old attribute name used in the previous version, the values are the
13 // new attribute name starting from this version.
14 type AttributeMap map[string]string