All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.telemetry.opencensus.Attributes.scala Maven / Gradle / Ivy

The newest version!
package zio.telemetry.opencensus

import io.opencensus.trace.AttributeValue

object Attributes {

  trait implicits {
    import scala.language.implicitConversions

    implicit def boolToAttribute(b: Boolean): AttributeValue =
      AttributeValue.booleanAttributeValue(b)

    implicit def stringToAttribute(s: String): AttributeValue =
      AttributeValue.stringAttributeValue(s)

    implicit def longToAttribute(l: Long): AttributeValue =
      AttributeValue.longAttributeValue(l)

    implicit def doubleToAttribute(d: Double): AttributeValue =
      AttributeValue.doubleAttributeValue(d)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy