File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
core/src/main/scala/io/chrisdavenport/http4sotel4s Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import org.typelevel.otel4s.Attribute
5
5
import org .http4s .headers ._
6
6
import com .comcast .ip4s ._
7
7
import org .typelevel .ci .CIString
8
- import cats .syntax .all ._
9
8
// This follows the documents here
10
9
// https://github.com/open-telemetry/opentelemetry-specification/blob/a50def370ef444029a12ea637769229768daeaf8/specification/trace/semantic_conventions/http.md
11
10
// We can update both the link and the tags as standards develop out of experimental
@@ -27,7 +26,7 @@ object OTHttpTags {
27
26
def responseContentLength (cl : Long ): Attribute [Long ] = Attribute (" http.response_content_length" , cl)
28
27
def retryCount (i : Int ): Attribute [Long ] = Attribute (" http.retry_count" , i.toLong)
29
28
def peerIp (ip : IpAddress ): Attribute [String ] = Attribute (" net.peer.ip" , ip.toString()) // TODO: Check that this is the right way
30
- def peerPort (port : Port ): Attribute [Long ] = Attribute (" net.peer.port" , port.value)
29
+ def peerPort (port : Port ): Attribute [Long ] = Attribute (" net.peer.port" , port.value.toLong )
31
30
}
32
31
33
32
object Client {
You can’t perform that action at this time.
0 commit comments