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

io.opentracing.play.HeadersTextMap.scala Maven / Gradle / Ivy

The newest version!
package io.opentracing.play

import com.google.common.collect.Maps
import io.opentracing.propagation.TextMap
import play.api.mvc.Headers
import scala.jdk.CollectionConverters._

class HeadersTextMap(headers: Headers) extends TextMap {
  def iterator =
    headers.toMap.iterator.map {
      case (name, values) => Maps.immutableEntry(name, values.mkString(","))
    }.asJava

  def put(key: String, value: String) = throw new UnsupportedOperationException
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy