try to run opentelemetry cpp - with static libs #1617
Replies: 7 comments
-
Thanks for using opentelemetry-cpp. There are two implementations of metrics:
The compiling option What you are probably looking for is the current metrics implementation, in which case do not set We are definitively aware this area is confusing. There are no plans to change the meaning of See related issue #1573 That being said, the old implementation contains the missing code, implemented in
in file available in library To use the old _metrics implementation, make sure to link against For future bug reports, please paste error messages as plain text instead of screen shots. |
Beta Was this translation helpful? Give feedback.
-
ok ,thanks for the answer, I am a junior , so it is my first time I am working with open-source,and try to understand how to work with any open-source I will meet with
thank you a lot , (sorry for my english, hope u got me) |
Beta Was this translation helpful? Give feedback.
-
Please check INSTALL.md https://github.com/open-telemetry/opentelemetry-cpp/blob/main/INSTALL.md Set compiling options when invoking cmake, do not change the source code itself. |
Beta Was this translation helpful? Give feedback.
-
ok got it, |
Beta Was this translation helpful? Give feedback.
-
while compiling using cmkae, the cmake complain about protobuf,zlib,curl,grpc that it couldn't found these libs |
Beta Was this translation helpful? Give feedback.
-
@yonatan555 - You need to install these packages before building opentelemetry-cpp. Please refer to platform-specific documentation for these packages on how to install them. If you are on ubuntu, we have scripts to install them which are used in our CI pipeline. You can also refer to this docker file - https://github.com/open-telemetry/opentelemetry-cpp/blob/main/docker/Dockerfile.debian.deps which internally uses the above-mentioned scripts to install these dependencies. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
ok, I am working on windows, I will try to install these libs, thanks for your help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a new project that I want to use open telemetry, I downloaded the whole open source,
I ran cmake for this, and got all compilation results in form of lib.a,
I took all the libs, and all the headers file into my code, and while trying to run the example of metrics with os_stream, I got an error
I inculded the header file into my project, I used -- ENABLE_METRICS_PREVIEW
I compiled it in Linux server , gcc compoler
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions