diff --git a/schema/parser_test.go b/schema/parser_test.go index 13ad4bc1ea7..200582571cd 100644 --- a/schema/parser_test.go +++ b/schema/parser_test.go @@ -28,7 +28,7 @@ func TestParseSchemaFile(t *testing.T) { t, &Schema{ FileFormat: "1.1.0", SchemaURL: "https://opentelemetry.io/schemas/1.1.0", - Versions: map[SemConvVersion]Transform{ + Versions: map[SemConvVersion]Changeset{ "1.0.0": {}, "1.1.0": { @@ -168,6 +168,6 @@ func TestParseSchemaFile(t *testing.T) { func TestFailParseFileUnknownField(t *testing.T) { ts, err := ParseFile("testdata/unknown-field.yaml") - assert.ErrorContains(t, err, "field Resources not found in type schema.Transform") + assert.ErrorContains(t, err, "field Resources not found in type schema.Changeset") assert.Nil(t, ts) } diff --git a/schema/schema.go b/schema/schema.go index 4f5341043cc..84e37b22d19 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -43,7 +43,7 @@ type Schema struct { // Versions are the telemetry transforms that apply for each semantic // convention version. - Versions map[SemConvVersion]Transform + Versions map[SemConvVersion]Changeset } var ( @@ -76,9 +76,9 @@ func (s *Schema) validate() error { // "1.7.0"). type SemConvVersion string -// Transform is all the applicable telemetry changes for a particular semantic +// Changeset is all the applicable telemetry changes for a particular semantic // convention version. -type Transform struct { +type Changeset struct { All All Resources Resources Spans Spans