From 9edd8dd8d37e0623f831b52e045f448cec938dba Mon Sep 17 00:00:00 2001 From: SMickelsn <122052675+SMickelsn@users.noreply.github.com> Date: Thu, 5 Jun 2025 12:31:02 -0700 Subject: [PATCH] DEMRUM-2354 Added component=http to span --- .../Sources/SplunkNetwork/NetworkInstrumentation.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SplunkNetwork/Sources/SplunkNetwork/NetworkInstrumentation.swift b/SplunkNetwork/Sources/SplunkNetwork/NetworkInstrumentation.swift index 6d6b426d8..5e5138c12 100644 --- a/SplunkNetwork/Sources/SplunkNetwork/NetworkInstrumentation.swift +++ b/SplunkNetwork/Sources/SplunkNetwork/NetworkInstrumentation.swift @@ -150,6 +150,8 @@ public class NetworkInstrumentation { let length = body?.count ?? 0 span.setAttribute(key: key, value: length) + span.setAttribute(key: "component", value: "http") + if let sharedState { let sessionID = sharedState.sessionId span.setAttribute(key: "session.id", value: sessionID)