diff --git a/CHANGELOG.md b/CHANGELOG.md index a3386458ac9..a22084c03da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Remove deprecated model module, everything is available in `pdata` and `semconv`. (#5281) - Old versions of the module are still available, but no new versions will be released. +- Remove deprecated LogRecord.Name field. (#5202) ### 🚩 Deprecations 🚩 diff --git a/Makefile b/Makefile index 2117e0017b0..5e7c75c8cb5 100644 --- a/Makefile +++ b/Makefile @@ -229,7 +229,7 @@ gendependabot: $(eval SHELL:=/bin/bash) OPENTELEMETRY_PROTO_SRC_DIR=pdata/internal/opentelemetry-proto # The SHA matching the current version of the proto to use -OPENTELEMETRY_PROTO_VERSION=v0.15.0 +OPENTELEMETRY_PROTO_VERSION=v0.16.0 # Find all .proto files. OPENTELEMETRY_PROTO_FILES := $(subst $(OPENTELEMETRY_PROTO_SRC_DIR)/,,$(wildcard $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/*/v1/*.proto $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/collector/*/v1/*.proto)) diff --git a/pdata/internal/cmd/pdatagen/internal/log_structs.go b/pdata/internal/cmd/pdatagen/internal/log_structs.go index 46786dcf0da..0f87fc9b154 100644 --- a/pdata/internal/cmd/pdatagen/internal/log_structs.go +++ b/pdata/internal/cmd/pdatagen/internal/log_structs.go @@ -129,14 +129,6 @@ var logRecord = &messageValueStruct{ defaultVal: `SeverityNumberUNDEFINED`, testVal: `SeverityNumberINFO`, }, - &primitiveField{ - extraComment: "Deprecated: [v0.50.0] it was removed from the data model.", - fieldName: "Name", - originFieldName: "Name", - returnType: "string", - defaultVal: `""`, - testVal: `"test_name"`, - }, bodyField, attributes, droppedAttributesCount, diff --git a/pdata/internal/data/protogen/logs/v1/logs.pb.go b/pdata/internal/data/protogen/logs/v1/logs.pb.go index 9c41b0cd27c..2e54d016416 100644 --- a/pdata/internal/data/protogen/logs/v1/logs.pb.go +++ b/pdata/internal/data/protogen/logs/v1/logs.pb.go @@ -478,12 +478,6 @@ type LogRecord struct { // The severity text (also known as log level). The original string representation as // it is known at the source. [Optional]. SeverityText string `protobuf:"bytes,3,opt,name=severity_text,json=severityText,proto3" json:"severity_text,omitempty"` - // Short event identifier that does not contain varying parts. Name describes - // what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 - // characters. Not guaranteed to be unique in any way. [Optional]. - // This deprecated field is planned to be removed March 15, 2022. Receivers can - // ignore this field. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. // A value containing the body of the log record. Can be for example a human-readable // string message (including multi-line) describing the event in a free form or it can // be a structured data composed of arrays and maps of other values. [Optional]. @@ -572,14 +566,6 @@ func (m *LogRecord) GetSeverityText() string { return "" } -// Deprecated: Do not use. -func (m *LogRecord) GetName() string { - if m != nil { - return m.Name - } - return "" -} - func (m *LogRecord) GetBody() v11.AnyValue { if m != nil { return m.Body @@ -623,69 +609,68 @@ func init() { } var fileDescriptor_d1c030a3ec7e961e = []byte{ - // 978 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0x41, 0x6f, 0x22, 0x37, - 0x14, 0xc7, 0x33, 0x6c, 0x08, 0xc1, 0x21, 0xac, 0xeb, 0xb2, 0x64, 0x4a, 0x5a, 0x82, 0xd2, 0x76, - 0x4b, 0x53, 0x09, 0xb4, 0xc0, 0xaa, 0xdb, 0x9e, 0x3a, 0x84, 0x21, 0x42, 0x21, 0x10, 0x19, 0xd8, - 0x76, 0x57, 0x95, 0x46, 0x03, 0xb8, 0x74, 0xa4, 0x61, 0x8c, 0x3c, 0x26, 0x0a, 0x97, 0xde, 0x7b, - 0xeb, 0xa9, 0xdf, 0xa7, 0x6a, 0x0f, 0x7b, 0xdc, 0x63, 0xd5, 0xc3, 0xaa, 0x4a, 0x2e, 0xfd, 0x14, - 0x6d, 0x65, 0xcf, 0x40, 0x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0x12, 0xaf, 0xb7, 0x6d, 0x93, 0x01, - 0xa7, 0xac, 0x38, 0x19, 0x9a, 0xdc, 0x2c, 0x5a, 0x0e, 0x27, 0xcc, 0x31, 0xed, 0xa2, 0x98, 0x15, - 0xba, 0x42, 0xa9, 0x51, 0xc3, 0x31, 0x29, 0xd9, 0x18, 0xa2, 0x17, 0x20, 0xe6, 0x4e, 0x4c, 0x47, - 0x88, 0x03, 0x29, 0xfe, 0x85, 0x2f, 0xfe, 0xec, 0xfe, 0xe2, 0x9d, 0x89, 0xe9, 0x34, 0x6a, 0x78, - 0x47, 0x08, 0x36, 0x86, 0x27, 0x3f, 0x47, 0x41, 0x72, 0xf5, 0xe8, 0xd1, 0x11, 0x38, 0xec, 0xe8, - 0xcf, 0x75, 0xdc, 0xe8, 0xbe, 0x30, 0x5a, 0xbd, 0x8b, 0xaa, 0x8e, 0x8d, 0x5e, 0xab, 0x73, 0xa9, - 0x9f, 0x36, 0xea, 0x0d, 0xbd, 0x06, 0xb7, 0xd0, 0x3b, 0xe0, 0xd1, 0x7a, 0x42, 0x17, 0x6b, 0xa7, - 0x3a, 0x54, 0x50, 0x06, 0xa4, 0x03, 0x51, 0x09, 0x46, 0x42, 0x59, 0x19, 0x3e, 0x08, 0x65, 0x15, - 0xb8, 0x1d, 0xb4, 0x5c, 0x4d, 0xaf, 0xf6, 0xce, 0x60, 0x34, 0xa8, 0x4c, 0xa2, 0x12, 0xdc, 0x09, - 0x65, 0x65, 0x18, 0x0b, 0x65, 0x15, 0xb8, 0x8b, 0x54, 0x90, 0x5a, 0x67, 0x8d, 0x56, 0xbd, 0x0d, - 0xe3, 0x41, 0x46, 0x04, 0x29, 0x41, 0x10, 0x86, 0xca, 0x70, 0x2f, 0x0c, 0x55, 0x60, 0x22, 0x68, - 0xa9, 0x2f, 0x35, 0xdc, 0x82, 0xfb, 0x41, 0x45, 0x82, 0x94, 0x60, 0x32, 0x0c, 0x95, 0xe1, 0xc3, - 0x30, 0x54, 0x81, 0x30, 0x08, 0xe9, 0x18, 0xb7, 0x31, 0x7c, 0x2b, 0x68, 0x33, 0x24, 0x2a, 0x41, - 0x14, 0xca, 0xca, 0xf0, 0xed, 0x50, 0x56, 0x81, 0xa9, 0xa0, 0xe5, 0xea, 0x5a, 0x57, 0x6b, 0xc2, - 0x47, 0x41, 0x65, 0x12, 0x95, 0x60, 0x3a, 0x94, 0x95, 0xe1, 0x41, 0x28, 0xab, 0x40, 0xf5, 0xe4, - 0x2b, 0x90, 0x5c, 0xbc, 0xae, 0x75, 0xf9, 0x41, 0x1e, 0x81, 0xc3, 0x66, 0xfb, 0xcc, 0xc0, 0xfa, - 0x69, 0x1b, 0xd7, 0x8c, 0x7a, 0x53, 0x3b, 0x5b, 0xbb, 0xc4, 0x1f, 0x82, 0xdc, 0x7a, 0x82, 0xbc, - 0x71, 0x72, 0xd8, 0x31, 0x2e, 0xb4, 0xce, 0x39, 0xfc, 0x4b, 0xa9, 0x7e, 0xaf, 0xbc, 0xba, 0xc9, - 0x2a, 0xaf, 0x6f, 0xb2, 0xca, 0xef, 0x37, 0x59, 0xe5, 0x87, 0xdb, 0xec, 0xd6, 0xeb, 0xdb, 0xec, - 0xd6, 0xaf, 0xb7, 0xd9, 0x2d, 0x90, 0xb5, 0xe8, 0xa6, 0x17, 0xb5, 0x2a, 0x1e, 0x7c, 0xf7, 0x52, - 0x84, 0x2e, 0x95, 0x97, 0xd5, 0x7b, 0x7f, 0xa9, 0xde, 0x9f, 0xb7, 0x11, 0x71, 0xe6, 0x7f, 0x23, - 0xfb, 0x3b, 0x32, 0x52, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xac, 0x0d, 0x5c, 0x58, 0x6c, 0x0a, - 0x00, 0x00, + // 971 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0x41, 0x73, 0x22, 0x45, + 0x14, 0xc7, 0x33, 0x24, 0x04, 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ee, + 0x19, 0x8c, 0x06, 0x95, 0x49, 0x54, 0x84, 0xdb, 0xa1, 0xac, 0x04, 0x63, 0xa1, 0xac, 0x0c, 0xe3, + 0x48, 0x05, 0x7b, 0xab, 0xac, 0xde, 0xac, 0xb5, 0x60, 0x22, 0xc8, 0x88, 0x20, 0x45, 0x08, 0xc2, + 0x50, 0x09, 0xee, 0x84, 0xa1, 0x32, 0x4c, 0x06, 0x2d, 0xf5, 0x95, 0x86, 0x9b, 0x70, 0x37, 0xa8, + 0x48, 0x90, 0x22, 0x4c, 0x85, 0xa1, 0x12, 0x7c, 0x10, 0x86, 0xca, 0x10, 0x06, 0x21, 0x1d, 0xe3, + 0x16, 0x86, 0x6f, 0x05, 0x6d, 0x86, 0x44, 0x45, 0x88, 0x42, 0x59, 0x09, 0xbe, 0x1d, 0xca, 0xca, + 0x70, 0x2f, 0x68, 0xb9, 0x9a, 0xd6, 0xd1, 0x1a, 0xf0, 0x61, 0x50, 0x99, 0x44, 0x45, 0xb8, 0x1f, + 0xca, 0x4a, 0xf0, 0x20, 0x94, 0x95, 0xa1, 0x7a, 0xf2, 0x35, 0x48, 0xcd, 0xdf, 0xd2, 0x9a, 0xfc, + 0x2c, 0x8f, 0xc0, 0x61, 0xa3, 0x75, 0x66, 0x60, 0xfd, 0xb4, 0x85, 0xab, 0x46, 0xad, 0xa1, 0x9d, + 0xad, 0x5c, 0xe2, 0x0f, 0x41, 0x76, 0x35, 0x41, 0xde, 0x38, 0x39, 0x6c, 0x1b, 0x17, 0x5a, 0xfb, + 0x1c, 0xfe, 0xad, 0x54, 0x7e, 0x54, 0x5e, 0xde, 0x64, 0x94, 0x57, 0x37, 0x19, 0xe5, 0x8f, 0x9b, + 0x8c, 0xf2, 0xd3, 0x6d, 0x66, 0xe3, 0xd5, 0x6d, 0x66, 0xe3, 0xb7, 0xdb, 0xcc, 0x06, 0xc8, 0x58, + 0x74, 0xdd, 0xfb, 0x59, 0x11, 0xcf, 0xbb, 0x7b, 0x29, 0x42, 0x97, 0xca, 0x8b, 0xca, 0xbd, 0xbf, + 0x57, 0xef, 0xaf, 0xda, 0x90, 0x38, 0xb3, 0x3f, 0x8d, 0xbd, 0x6d, 0x19, 0x29, 0xfd, 0x13, 0x00, + 0x00, 0xff, 0xff, 0x43, 0x73, 0x1b, 0xe8, 0x5a, 0x0a, 0x00, 0x00, } func (m *LogsData) Marshal() (dAtA []byte, err error) { @@ -984,13 +969,6 @@ func (m *LogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x2a - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintLogs(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x22 - } if len(m.SeverityText) > 0 { i -= len(m.SeverityText) copy(dAtA[i:], m.SeverityText) @@ -1123,10 +1101,6 @@ func (m *LogRecord) Size() (n int) { if l > 0 { n += 1 + l + sovLogs(uint64(l)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovLogs(uint64(l)) - } l = m.Body.Size() n += 1 + l + sovLogs(uint64(l)) if len(m.Attributes) > 0 { @@ -1812,38 +1786,6 @@ func (m *LogRecord) Unmarshal(dAtA []byte) error { } m.SeverityText = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowLogs - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthLogs - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthLogs - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) diff --git a/pdata/internal/generated_plog.go b/pdata/internal/generated_plog.go index 601d47cb6a7..2fd319d6556 100644 --- a/pdata/internal/generated_plog.go +++ b/pdata/internal/generated_plog.go @@ -649,20 +649,6 @@ func (ms LogRecord) SetSeverityNumber(v SeverityNumber) { (*ms.orig).SeverityNumber = otlplogs.SeverityNumber(v) } -// Name returns the name associated with this LogRecord. -// -// Deprecated: [v0.50.0] it was removed from the data model. -func (ms LogRecord) Name() string { - return (*ms.orig).Name -} - -// SetName replaces the name associated with this LogRecord. -// -// Deprecated: [v0.50.0] it was removed from the data model. -func (ms LogRecord) SetName(v string) { - (*ms.orig).Name = v -} - // Body returns the body associated with this LogRecord. func (ms LogRecord) Body() Value { return newValue(&(*ms.orig).Body) @@ -692,7 +678,6 @@ func (ms LogRecord) CopyTo(dest LogRecord) { dest.SetFlags(ms.Flags()) dest.SetSeverityText(ms.SeverityText()) dest.SetSeverityNumber(ms.SeverityNumber()) - dest.SetName(ms.Name()) ms.Body().CopyTo(dest.Body()) ms.Attributes().CopyTo(dest.Attributes()) dest.SetDroppedAttributesCount(ms.DroppedAttributesCount()) diff --git a/pdata/internal/generated_plog_test.go b/pdata/internal/generated_plog_test.go index 2e7e88e1bf6..b7547b03231 100644 --- a/pdata/internal/generated_plog_test.go +++ b/pdata/internal/generated_plog_test.go @@ -509,14 +509,6 @@ func TestLogRecord_SeverityNumber(t *testing.T) { assert.EqualValues(t, testValSeverityNumber, ms.SeverityNumber()) } -func TestLogRecord_Name(t *testing.T) { - ms := NewLogRecord() - assert.EqualValues(t, "", ms.Name()) - testValName := "test_name" - ms.SetName(testValName) - assert.EqualValues(t, testValName, ms.Name()) -} - func TestLogRecord_Body(t *testing.T) { ms := NewLogRecord() fillTestValue(ms.Body()) @@ -619,7 +611,6 @@ func fillTestLogRecord(tv LogRecord) { tv.SetFlags(uint32(0x01)) tv.SetSeverityText("INFO") tv.SetSeverityNumber(SeverityNumberINFO) - tv.SetName("test_name") fillTestValue(tv.Body()) fillTestMap(tv.Attributes()) tv.SetDroppedAttributesCount(uint32(17))