Attributes

org.typelevel.otel4s.Attributes
See theAttributes companion object

An immutable collection of Attributes. It contains only unique keys.

Attributes

See also
Companion
object
Source
Attributes.scala
Graph
Supertypes
trait Iterable[Attribute[_]]
trait Iterable[Attribute[_]]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Abstract methods

def added(attribute: Attribute[_]): Attributes

Adds the given Attribute to these Attributes, replacing any Attribute with the same key if one exists.

Adds the given Attribute to these Attributes, replacing any Attribute with the same key if one exists.

Attributes

Source
Attributes.scala

A factory for creating Attributes.

A factory for creating Attributes.

Attributes

Source
Attributes.scala
def get[T](key: AttributeKey[T]): Option[Attribute[T]]

Attributes

Returns

an Attribute matching the given attribute key, or None if not found

Source
Attributes.scala

Concrete methods

final def +(attribute: Attribute[_]): Attributes

Adds the given Attribute to these Attributes, replacing any Attribute with the same key if one exists.

Adds the given Attribute to these Attributes, replacing any Attribute with the same key if one exists.

Attributes

Source
Attributes.scala
final def ++(that: IterableOnce[Attribute[_]]): Attributes

Invariant overload of IterableOps#++ that returns Attributes rather than Iterable.

Invariant overload of IterableOps#++ that returns Attributes rather than Iterable.

If multiple Attributes in this and/or that have the same key, only the final one (according to that's iterator) will be retained in the resulting Attributes.

Attributes

Source
Attributes.scala
final def added[T : KeySelect](name: String, value: T): Attributes

Adds an Attribute with the given name and value to these Attributes, replacing any Attribute with the same name and type if one exists.

Adds an Attribute with the given name and value to these Attributes, replacing any Attribute with the same name and type if one exists.

Attributes

Source
Attributes.scala
final def added[T](key: AttributeKey[T], value: T): Attributes

Adds an Attribute with the given key and value to these Attributes, replacing any Attribute with the same key if one exists.

Adds an Attribute with the given key and value to these Attributes, replacing any Attribute with the same key if one exists.

Attributes

Source
Attributes.scala

Invariant overload of IterableOps#concat that returns Attributes rather than Iterable.

Invariant overload of IterableOps#concat that returns Attributes rather than Iterable.

If multiple Attributes in this and/or that have the same key, only the final one (according to that's iterator) will be retained in the resulting Attributes.

Attributes

Source
Attributes.scala
override def empty: Attributes

Attributes

Definition Classes
Source
Attributes.scala
override def equals(obj: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

- It is reflexive: for any instance x of type Any, x.equals(x) should return true. - It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. - It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Any
Source
Attributes.scala
final def get[T : KeySelect](name: String): Option[Attribute[T]]

Attributes

Returns

an Attribute matching the given attribute name and type, or None if not found.

Source
Attributes.scala
override def hashCode(): Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Any
Source
Attributes.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Iterable -> Any
Source
Attributes.scala

Inherited methods

final def ++[B >: Attribute[_]](suffix: IterableOnce[B]): Iterable[B]

Attributes

Inherited from:
IterableOps
final def addString(b: StringBuilder): b.type

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): b.type

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOps
def copyToArray[B >: Attribute[_]](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: Attribute[_]](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: Attribute[_]](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def count(p: (Attribute[_]) => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def drop(n: Int): Attributes

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def exists(p: (Attribute[_]) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def find(p: (Attribute[_]) => Boolean): Option[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: (Attribute[_]) => IterableOnce[B]): Iterable[B]

Attributes

Inherited from:
IterableOps
def flatten[B](implicit asIterable: (Attribute[_]) => IterableOnce[B]): Iterable[B]

Attributes

Inherited from:
IterableOps
def fold[A1 >: Attribute[_]](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, Attribute[_]) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: (Attribute[_], B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: (Attribute[_]) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: (Attribute[_]) => U): Unit

Attributes

Inherited from:
IterableOnceOps
def groupBy[K](f: (Attribute[_]) => K): Map[K, Attributes]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: (Attribute[_]) => K)(f: (Attribute[_]) => B): Map[K, Iterable[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: (Attribute[_]) => K)(f: (Attribute[_]) => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def head: Attribute[_]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOnceOps
override def isTraversableAgain: Boolean

Attributes

Definition Classes
Inherited from:
IterableOps

Attributes

Definition Classes
Inherited from:
Iterable

Attributes

Inherited from:
IterableOnce
def knownSize: Int

Attributes

Inherited from:
IterableOnce
def last: Attribute[_]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[Attribute[_], B, Iterable.this.type]

Attributes

Inherited from:
Iterable
def map[B](f: (Attribute[_]) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def max[B >: Attribute[_]](implicit ord: Ordering[B]): Attribute[_]

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: (Attribute[_]) => B)(implicit ord: Ordering[B]): Attribute[_]

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: (Attribute[_]) => B)(implicit ord: Ordering[B]): Option[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: Attribute[_]](implicit ord: Ordering[B]): Option[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
def min[B >: Attribute[_]](implicit ord: Ordering[B]): Attribute[_]

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: (Attribute[_]) => B)(implicit ord: Ordering[B]): Attribute[_]

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: (Attribute[_]) => B)(implicit ord: Ordering[B]): Option[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: Attribute[_]](implicit ord: Ordering[B]): Option[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOps
def partitionMap[A1, A2](f: (Attribute[_]) => Either[A1, A2]): (Iterable[A1], Iterable[A2])

Attributes

Inherited from:
IterableOps
def product[B >: Attribute[_]](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: Attribute[_]](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: Attribute[_]](op: (B, Attribute[_]) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: Attribute[_]](op: (B, Attribute[_]) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: Attribute[_]](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: Attribute[_]](op: (Attribute[_], B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: Attribute[_]](op: (Attribute[_], B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
protected def reversed: Iterable[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
def scan[B >: Attribute[_]](z: B)(op: (B, B) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, Attribute[_]) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def scanRight[B](z: B)(op: (Attribute[_], B) => B): Iterable[B]

Attributes

Inherited from:
IterableOps
def size: Int

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
override def splitAt(n: Int): (Attributes, Attributes)

Attributes

Definition Classes
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[Attribute[_], S]): S

Attributes

Inherited from:
IterableOnce
def sum[B >: Attribute[_]](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def take(n: Int): Attributes

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
override def tapEach[U](f: (Attribute[_]) => U): Attributes

Attributes

Definition Classes
Inherited from:
IterableOps
def to[C1](factory: Factory[Attribute[_], C1]): C1

Attributes

Inherited from:
IterableOnceOps
def toArray[B >: Attribute[_] : ClassTag]: Array[B]

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: Attribute[_]]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def toList: List[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: Attribute[_] <:< (K, V)): Map[K, V]

Attributes

Inherited from:
IterableOnceOps
def toSeq: Seq[Attribute[_]]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: Attribute[_]]: Set[B]

Attributes

Inherited from:
IterableOnceOps

Attributes

Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: (Attribute[_]) => Iterable[B]): Iterable[Iterable[B]]

Attributes

Inherited from:
IterableOps
def unzip[A1, A2](implicit asPair: (Attribute[_]) => (A1, A2)): (Iterable[A1], Iterable[A2])

Attributes

Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: (Attribute[_]) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

Attributes

Inherited from:
IterableOps
def view: View[Attribute[_]]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): Iterable[(Attribute[_], B)]

Attributes

Inherited from:
IterableOps
def zipAll[A1 >: Attribute[_], B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]

Attributes

Inherited from:
IterableOps

Attributes

Inherited from:
IterableOps

Deprecated and Inherited methods

def ++:[B >: Attribute[_]](that: IterableOnce[B]): Iterable[B]

Attributes

Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
final def /:[B](z: B)(op: (B, Attribute[_]) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: (Attribute[_], B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, Attribute[_]) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: Attribute[_]](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
final def repr: Attributes

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[Attribute[_]]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[Attribute[_]]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps