Skip to content

Commit f1d6689

Browse files
committed
Fix warnings
1 parent 9c8de05 commit f1d6689

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/scala/io/chrisdavenport/http4sotel4s/OTHttpTags.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import org.typelevel.otel4s.Attribute
55
import org.http4s.headers._
66
import com.comcast.ip4s._
77
import org.typelevel.ci.CIString
8-
import cats.syntax.all._
98
// This follows the documents here
109
// https://github.com/open-telemetry/opentelemetry-specification/blob/a50def370ef444029a12ea637769229768daeaf8/specification/trace/semantic_conventions/http.md
1110
// We can update both the link and the tags as standards develop out of experimental
@@ -27,7 +26,7 @@ object OTHttpTags {
2726
def responseContentLength(cl: Long): Attribute[Long] = Attribute("http.response_content_length" , cl)
2827
def retryCount(i: Int): Attribute[Long] = Attribute("http.retry_count" , i.toLong)
2928
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)
3130
}
3231

3332
object Client {

0 commit comments

Comments
 (0)