Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

The 'Metric' trait conflicts with the zio-core's one #135

Open
zeal18 opened this issue Sep 8, 2022 · 0 comments
Open

The 'Metric' trait conflicts with the zio-core's one #135

zeal18 opened this issue Sep 8, 2022 · 0 comments

Comments

@zeal18
Copy link

zeal18 commented Sep 8, 2022

Scala 3.1.3
ZIO 2.0.2

Compilation fails trying to create a client and provide it encoder:

DogStatsDClient(...).provideSomeLayer[Scope](Encoder.dogstatsd)

with the following error message:

Missing type parameters for zio.metrics.Metric in subpart zio.metrics.encoders.Encoder.Service[zio.metrics.Metric] of inferred type zio.metrics.encoders.Encoder.Service[zio.metrics.Metric]

There is a trait defined in the same package but in the zio-core:

trait Metric[+Type, -In, +Out] 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant