Opentelemetry_exporter compile error after upgrade phoenix package from 1.6.5 to 1.7.0


I have only performed the minimum required changes to change the phoenix package from 1.6.5 to 1.7.0 - so this means only making changing in deps.exs, nothing else. However, upon changing the 3 dependencies according to the upgrade guide, it fails to compile opentelemetry_exporter with the following errors:

Compiling src/opentelemetry_exporter.erl failed
src/opentelemetry_exporter.erl:527:34: record instrumentation_library undefined
src/opentelemetry_exporter.erl:530:44: variable 'Name' is unbound
src/opentelemetry_exporter.erl:531:47: variable 'Version' is unbound
src/opentelemetry_exporter.erl:532:34: record instrumentation_library undefined
src/opentelemetry_exporter.erl:535:44: variable 'Name' is unbound
src/opentelemetry_exporter.erl:536:47: variable 'Version' is unbound
src/opentelemetry_exporter.erl:537:21: variable 'SchemaUrl' is unbound
src/opentelemetry_exporter.erl:648:38: variable 'Timestamp' is unbound

The version has not changed at all, the lock still states 1.0.4 so I am really confused.

I have previously changed another project that didn’t use this package from 1.5 to 1.7 completely and never had any issues. This is just the dependencies.

Thanks everyone

1 Like