From 5bb759be575dcde18dc7c895d0ff8e81bb76f9f6 Mon Sep 17 00:00:00 2001 From: Simon Pilkington Date: Tue, 22 Aug 2023 12:38:12 +1000 Subject: [PATCH] Fix span attribute name. --- Sources/SmokeHTTPClient/HTTPOperationsClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SmokeHTTPClient/HTTPOperationsClient.swift b/Sources/SmokeHTTPClient/HTTPOperationsClient.swift index 6619d02..6dbe1bc 100644 --- a/Sources/SmokeHTTPClient/HTTPOperationsClient.swift +++ b/Sources/SmokeHTTPClient/HTTPOperationsClient.swift @@ -379,7 +379,7 @@ extension HTTPOperationsClient { if let span = span { span.attributes["http.method"] = httpMethod.rawValue - span.attributes["http.target"] = endpoint + span.attributes["http.url"] = endpoint span.attributes["http.flavor"] = "1.1" span.attributes["http.user_agent"] = requestHeaders.first(name: "user-agent") span.attributes["http.request_content_length"] = requestHeaders.first(name: "content-length")