Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
xcuserdata/
.swiftpm
/Package.resolved
.vscode/
5 changes: 5 additions & 0 deletions Sources/Tracing/SpanProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down