diff --git a/.gitignore b/.gitignore index e613a74..71707ec 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ xcuserdata/ .swiftpm /Package.resolved +.vscode/ \ No newline at end of file diff --git a/Sources/Tracing/SpanProtocol.swift b/Sources/Tracing/SpanProtocol.swift index 275fa2f..a207618 100644 --- a/Sources/Tracing/SpanProtocol.swift +++ b/Sources/Tracing/SpanProtocol.swift @@ -713,6 +713,11 @@ extension SpanAttributes { public var isEmpty: Bool { self._attributes.isEmpty } + + /// Reserves enough space to store the specified number of attributes. + public mutating func reserveCapacity(_ minimumCapacity: Int) { + self._attributes.reserveCapacity(minimumCapacity) + } } extension SpanAttributes {