Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
NthPortal committed Dec 5, 2023
1 parent 9c8de05 commit f1d6689
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.typelevel.otel4s.Attribute
import org.http4s.headers._
import com.comcast.ip4s._
import org.typelevel.ci.CIString
import cats.syntax.all._
// This follows the documents here
// https://github.com/open-telemetry/opentelemetry-specification/blob/a50def370ef444029a12ea637769229768daeaf8/specification/trace/semantic_conventions/http.md
// We can update both the link and the tags as standards develop out of experimental
Expand All @@ -27,7 +26,7 @@ object OTHttpTags {
def responseContentLength(cl: Long): Attribute[Long] = Attribute("http.response_content_length" , cl)
def retryCount(i: Int): Attribute[Long] = Attribute("http.retry_count" , i.toLong)
def peerIp(ip: IpAddress): Attribute[String] = Attribute("net.peer.ip" , ip.toString()) // TODO: Check that this is the right way
def peerPort(port: Port): Attribute[Long] = Attribute("net.peer.port" , port.value)
def peerPort(port: Port): Attribute[Long] = Attribute("net.peer.port" , port.value.toLong)
}

object Client {
Expand Down

0 comments on commit f1d6689

Please sign in to comment.