Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling opentelemetry in elixir project #140

Closed
mrkaspa opened this issue Nov 6, 2020 · 4 comments
Closed

Error compiling opentelemetry in elixir project #140

mrkaspa opened this issue Nov 6, 2020 · 4 comments

Comments

@mrkaspa
Copy link

mrkaspa commented Nov 6, 2020

I included the dependencies like this

{:opentelemetry_api,
       git: "git@github.com:open-telemetry/opentelemetry-erlang.git",
       branch: "master",
       sparse: "apps/opentelemetry_api",
       override: true},
{:opentelemetry,
       git: "git@github.com:open-telemetry/opentelemetry-erlang.git",
       branch: "master",
       sparse: "apps/opentelemetry",
       override: true},
{:opentelemetry_exporter,
       git: "git@github.com:open-telemetry/opentelemetry-erlang.git",
       branch: "master",
       sparse: "apps/opentelemetry_exporter",
       override: true},

and I got this error when compiling

===> Compiling parse_trans
===> Compiling opentelemetry
===> Compiling src/otel_metric_exporter.erl failed
src/otel_metric_exporter.erl:30: can't find include lib "opentelemetry_api/include/opentelemetry.hrl"; Make sure opentelemetry_api is in your app file's 'applications' list

** (Mix) Could not compile dependency :opentelemetry, "/home/mrkaspa/.asdf/installs/elixir/1.9.4/.mix/rebar3 bare compile --paths="/home/mrkaspa/code/ex/fms_gateway_umbrella/_build/dev/lib/*/ebin"" command failed. You can recompile
 this dependency with "mix deps.compile opentelemetry", update it with "mix deps.update opentelemetry" or clean it with "mix deps.clean opentelemetry"
@tsloughter
Copy link
Member

Thanks. I have a theory and it isn't good...

I need to see the path that mix is passing to rebar3 bare compile, it may be that it doesn't include the sparse dir appended to it and that would explain it not finding the include file.

@mrkaspa
Copy link
Author

mrkaspa commented Nov 6, 2020

@tsloughter sounds bad, it is not easier to publish the packages on hex, the ones there are outdated

@tsloughter
Copy link
Member

Yup, I was planning to publish this weekend and try to get a few more things in first (like the record_exception PR and updating the Status to spec).

@tsloughter
Copy link
Member

This should be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants