Skip to content

Commit 9edd8dd

Browse files
committed
DEMRUM-2354 Added component=http to span
1 parent e6ec7d8 commit 9edd8dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SplunkNetwork/Sources/SplunkNetwork/NetworkInstrumentation.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ public class NetworkInstrumentation {
150150
let length = body?.count ?? 0
151151
span.setAttribute(key: key, value: length)
152152

153+
span.setAttribute(key: "component", value: "http")
154+
153155
if let sharedState {
154156
let sessionID = sharedState.sessionId
155157
span.setAttribute(key: "session.id", value: sessionID)

0 commit comments

Comments
 (0)