@@ -219,26 +219,6 @@ public struct Opentelemetry_Proto_Common_V1_KeyValue {
219219 fileprivate var _value : Opentelemetry_Proto_Common_V1_AnyValue ? = nil
220220}
221221
222- /// InstrumentationLibrary is a message representing the instrumentation library information
223- /// such as the fully qualified name and version.
224- /// InstrumentationLibrary is wire-compatible with InstrumentationScope for binary
225- /// Protobuf format.
226- /// This message is deprecated and will be removed on June 15, 2022.
227- public struct Opentelemetry_Proto_Common_V1_InstrumentationLibrary {
228- // SwiftProtobuf.Message conformance is added in an extension below. See the
229- // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
230- // methods supported on all messages.
231-
232- /// An empty instrumentation library name means the name is unknown.
233- public var name : String = String ( )
234-
235- public var version : String = String ( )
236-
237- public var unknownFields = SwiftProtobuf . UnknownStorage ( )
238-
239- public init ( ) { }
240- }
241-
242222/// InstrumentationScope is a message representing the instrumentation scope information
243223/// such as the fully qualified name and version.
244224public struct Opentelemetry_Proto_Common_V1_InstrumentationScope {
@@ -251,6 +231,10 @@ public struct Opentelemetry_Proto_Common_V1_InstrumentationScope {
251231
252232 public var version : String = String ( )
253233
234+ public var attributes : [ Opentelemetry_Proto_Common_V1_KeyValue ] = [ ]
235+
236+ public var droppedAttributesCount : UInt32 = 0
237+
254238 public var unknownFields = SwiftProtobuf . UnknownStorage ( )
255239
256240 public init ( ) { }
@@ -262,7 +246,6 @@ extension Opentelemetry_Proto_Common_V1_AnyValue.OneOf_Value: @unchecked Sendabl
262246extension Opentelemetry_Proto_Common_V1_ArrayValue : @unchecked Sendable { }
263247extension Opentelemetry_Proto_Common_V1_KeyValueList : @unchecked Sendable { }
264248extension Opentelemetry_Proto_Common_V1_KeyValue : @unchecked Sendable { }
265- extension Opentelemetry_Proto_Common_V1_InstrumentationLibrary : @unchecked Sendable { }
266249extension Opentelemetry_Proto_Common_V1_InstrumentationScope : @unchecked Sendable { }
267250#endif // swift(>=5.5) && canImport(_Concurrency)
268251
@@ -511,49 +494,13 @@ extension Opentelemetry_Proto_Common_V1_KeyValue: SwiftProtobuf.Message, SwiftPr
511494 }
512495}
513496
514- extension Opentelemetry_Proto_Common_V1_InstrumentationLibrary : SwiftProtobuf . Message , SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
515- public static let protoMessageName : String = _protobuf_package + " .InstrumentationLibrary "
516- public static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
517- 1 : . same( proto: " name " ) ,
518- 2 : . same( proto: " version " ) ,
519- ]
520-
521- public mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
522- while let fieldNumber = try decoder. nextFieldNumber ( ) {
523- // The use of inline closures is to circumvent an issue where the compiler
524- // allocates stack space for every case branch when no optimizations are
525- // enabled. https://github.com/apple/swift-protobuf/issues/1034
526- switch fieldNumber {
527- case 1 : try { try decoder. decodeSingularStringField ( value: & self . name) } ( )
528- case 2 : try { try decoder. decodeSingularStringField ( value: & self . version) } ( )
529- default : break
530- }
531- }
532- }
533-
534- public func traverse< V: SwiftProtobuf . Visitor > ( visitor: inout V ) throws {
535- if !self . name. isEmpty {
536- try visitor. visitSingularStringField ( value: self . name, fieldNumber: 1 )
537- }
538- if !self . version. isEmpty {
539- try visitor. visitSingularStringField ( value: self . version, fieldNumber: 2 )
540- }
541- try unknownFields. traverse ( visitor: & visitor)
542- }
543-
544- public static func == ( lhs: Opentelemetry_Proto_Common_V1_InstrumentationLibrary , rhs: Opentelemetry_Proto_Common_V1_InstrumentationLibrary ) -> Bool {
545- if lhs. name != rhs. name { return false }
546- if lhs. version != rhs. version { return false }
547- if lhs. unknownFields != rhs. unknownFields { return false }
548- return true
549- }
550- }
551-
552497extension Opentelemetry_Proto_Common_V1_InstrumentationScope : SwiftProtobuf . Message , SwiftProtobuf . _MessageImplementationBase , SwiftProtobuf . _ProtoNameProviding {
553498 public static let protoMessageName : String = _protobuf_package + " .InstrumentationScope "
554499 public static let _protobuf_nameMap : SwiftProtobuf . _NameMap = [
555500 1 : . same( proto: " name " ) ,
556501 2 : . same( proto: " version " ) ,
502+ 3 : . same( proto: " attributes " ) ,
503+ 4 : . standard( proto: " dropped_attributes_count " ) ,
557504 ]
558505
559506 public mutating func decodeMessage< D: SwiftProtobuf . Decoder > ( decoder: inout D ) throws {
@@ -564,6 +511,8 @@ extension Opentelemetry_Proto_Common_V1_InstrumentationScope: SwiftProtobuf.Mess
564511 switch fieldNumber {
565512 case 1 : try { try decoder. decodeSingularStringField ( value: & self . name) } ( )
566513 case 2 : try { try decoder. decodeSingularStringField ( value: & self . version) } ( )
514+ case 3 : try { try decoder. decodeRepeatedMessageField ( value: & self . attributes) } ( )
515+ case 4 : try { try decoder. decodeSingularUInt32Field ( value: & self . droppedAttributesCount) } ( )
567516 default : break
568517 }
569518 }
@@ -576,12 +525,20 @@ extension Opentelemetry_Proto_Common_V1_InstrumentationScope: SwiftProtobuf.Mess
576525 if !self . version. isEmpty {
577526 try visitor. visitSingularStringField ( value: self . version, fieldNumber: 2 )
578527 }
528+ if !self . attributes. isEmpty {
529+ try visitor. visitRepeatedMessageField ( value: self . attributes, fieldNumber: 3 )
530+ }
531+ if self . droppedAttributesCount != 0 {
532+ try visitor. visitSingularUInt32Field ( value: self . droppedAttributesCount, fieldNumber: 4 )
533+ }
579534 try unknownFields. traverse ( visitor: & visitor)
580535 }
581536
582537 public static func == ( lhs: Opentelemetry_Proto_Common_V1_InstrumentationScope , rhs: Opentelemetry_Proto_Common_V1_InstrumentationScope ) -> Bool {
583538 if lhs. name != rhs. name { return false }
584539 if lhs. version != rhs. version { return false }
540+ if lhs. attributes != rhs. attributes { return false }
541+ if lhs. droppedAttributesCount != rhs. droppedAttributesCount { return false }
585542 if lhs. unknownFields != rhs. unknownFields { return false }
586543 return true
587544 }
0 commit comments