Skip to content
Merged
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
12 changes: 12 additions & 0 deletions Sources/Tracing/SpanProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@ extension Array where Element == Int {
}
}

extension Array where Element == Int32 {
public func toSpanAttribute() -> SpanAttribute {
.int32Array(self)
}
}

extension Array where Element == Int64 {
public func toSpanAttribute() -> SpanAttribute {
.int64Array(self)
Expand Down Expand Up @@ -515,6 +521,12 @@ extension Int: SpanAttributeConvertible {
}
}

extension Int32: SpanAttributeConvertible {
public func toSpanAttribute() -> SpanAttribute {
.int32(self)
}
}

extension Int64: SpanAttributeConvertible {
public func toSpanAttribute() -> SpanAttribute {
.int64(self)
Expand Down