asynkron/protoactor-go

Compatibility issues with opentelemetry-go v1.16.0

civilizeddev opened this issue · 1 comments

Describe the bug

There have been recent changes in opentelemetry-go, causing compatibility issues with the code.
I would like to address this and fix it.

error while importing github.com/asynkron/protoactor-go/actor: cannot find module providing package go.opentelemetry.io/otel/metric/global: import lookup disabled by -mod=readonly [compiler]

error while importing github.com/asynkron/protoactor-go/actor: cannot find module providing package go.opentelemetry.io/otel/metric/instrument: import lookup disabled by -mod=readonly [compiler]

error while importing github.com/asynkron/protoactor-go/actor: cannot find module providing package go.opentelemetry.io/otel/metric/unit: import lookup disabled by -mod=readonly [compiler]

To Reproduce

  • upgrade go.opentelemetry.io/otel module to v1.16.0
  • go mod tidy

Expected behavior

no error

Screenshots
If applicable, add screenshots to help explain your problem.

image

Additional context
Add any other context about the problem here.

  • https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.16.0
    • Removed
      • The deprecated go.opentelemetry.io/otel/metric/instrument package is removed.
      • Use go.opentelemetry.io/otel/metric instead. (#4055)
  • https://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.14.0
    • Deprecated
      • The go.opentelemetry.io/otel/metric/unit package is deprecated.
        • Use the equivalent unit string instead. (#3776)
        • Use "1" instead of unit.Dimensionless
        • Use "By" instead of unit.Bytes
        • Use "ms" instead of unit.Milliseconds
  • Deprecated
    • The go.opentelemetry.io/otel/metric/global package is deprecated. Use go.opentelemetry.io/otel instead. (#3818)
  • Removed
    • The deprecated go.opentelemetry.io/otel/metric/unit package is removed. (#3814)
  • The measurement methods for all instruments in go.opentelemetry.io/otel/metric/instrument accept an option instead of the variadic "go.opentelemetry.io/otel/attribute".KeyValue. (#3971)
    • The Int64Counter.Add method now accepts ...AddOption
    • The Float64Counter.Add method now accepts ...AddOption
    • The Int64UpDownCounter.Add method now accepts ...AddOption
    • The Float64UpDownCounter.Add method now accepts ...AddOption
    • The Int64Histogram.Record method now accepts ...RecordOption
    • The Float64Histogram.Record method now accepts ...RecordOption
    • The Int64Observer.Observe method now accepts ...ObserveOption
    • The Float64Observer.Observe method now accepts ...ObserveOption
  • The Observer methods in go.opentelemetry.io/otel/metric accept an option instead of the variadic "go.opentelemetry.io/otel/attribute".KeyValue. (#3971)
    • The Observer.ObserveInt64 method now accepts ...ObserveOption
    • The Observer.ObserveFloat64 method now accepts ...ObserveOption

@rogeralsing can you look into this?