-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from ScalaConsultants/ot-update-1.7
Bump up opentelemetry metrics to 1.7
- Loading branch information
Showing
68 changed files
with
770 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
core/src/main/scala/io/scalac/mesmer/core/AttributeSerializer.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.scalac.mesmer.core | ||
|
||
import io.scalac.mesmer.core.model.RawAttributes | ||
|
||
trait AttributeSerializer[T] extends (T => RawAttributes) { | ||
final def apply(value: T): RawAttributes = serialize(value) | ||
def serialize(value: T): RawAttributes | ||
} | ||
|
||
object AttributeSerializer { | ||
implicit def fromAttributesSerializable[T <: AttributesSerializable]: AttributeSerializer[T] = _.serialize | ||
} |
7 changes: 7 additions & 0 deletions
7
core/src/main/scala/io/scalac/mesmer/core/AttributesSerializable.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.scalac.mesmer.core | ||
|
||
import io.scalac.mesmer.core.model.RawAttributes | ||
|
||
trait AttributesSerializable { | ||
def serialize: RawAttributes | ||
} |
7 changes: 0 additions & 7 deletions
7
core/src/main/scala/io/scalac/mesmer/core/LabelSerializable.scala
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
core/src/main/scala/io/scalac/mesmer/core/LabelSerializer.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.