-
Notifications
You must be signed in to change notification settings - Fork 440
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
Add OTLP Metric Exporter Factory and OtlpGrpcClient
#1606
Add OTLP Metric Exporter Factory and OtlpGrpcClient
#1606
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1606 +/- ##
==========================================
- Coverage 85.26% 85.20% -0.06%
==========================================
Files 156 156
Lines 4978 4978
==========================================
- Hits 4244 4241 -3
- Misses 734 737 +3
|
OtlpGrpcClient
OtlpGrpcClient
83c88ae
to
9580025
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the PR :)
Did a quick validations on the binaries generated from this PR. It seems that $ ldd example_otlp_grpc_log
linux-vdso.so.1 (0x00007fff86bf5000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4b4ef1b000)
libcommon_logs_foo_library.so => /tmp/owent/opentelemetry-cpp/build/examples/common/logs_foo_library/libcommon_logs_foo_library.so (0x00007f4b4eeb6000)
libopentelemetry_exporter_otlp_grpc.so => /tmp/owent/opentelemetry-cpp/build/exporters/otlp/libopentelemetry_exporter_otlp_grpc.so (0x00007f4b4edff000)
libopentelemetry_exporter_otlp_grpc_log.so => /tmp/owent/opentelemetry-cpp/build/exporters/otlp/libopentelemetry_exporter_otlp_grpc_log.so (0x00007f4b4ed48000)
libopentelemetry_trace.so => /tmp/owent/opentelemetry-cpp/build/sdk/src/trace/libopentelemetry_trace.so (0x00007f4b4ec4a000)
libopentelemetry_logs.so => /tmp/owent/opentelemetry-cpp/build/sdk/src/logs/libopentelemetry_logs.so (0x00007f4b4eb63000)
libopentelemetry_exporter_otlp_grpc_client.so => /tmp/owent/opentelemetry-cpp/build/exporters/otlp/libopentelemetry_exporter_otlp_grpc_client.so (0x00007f4b4e5e2000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4b4e400000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4b4e3e5000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4b4e1f3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4b4f1d1000)
libopentelemetry_otlp_recordable.so => /tmp/owent/opentelemetry-cpp/build/exporters/otlp/libopentelemetry_otlp_recordable.so (0x00007f4b4dec1000)
libopentelemetry_common.so => /tmp/owent/opentelemetry-cpp/build/sdk/src/common/libopentelemetry_common.so (0x00007f4b4deae000)
libopentelemetry_resources.so => /tmp/owent/opentelemetry-cpp/build/sdk/src/resource/libopentelemetry_resources.so (0x00007f4b4ddd1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4b4dc82000)
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f4b4dbef000)
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f4b4d917000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4b4d911000) While $ ldd ./example_otlp_grpc
linux-vdso.so.1 (0x00007fff1a3e1000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6543907000)
libcommon_foo_library.so => /tmp/owent/opentelemetry-cpp/build/examples/common/foo_library/libcommon_foo_library.so (0x00007f65438ac000)
libopentelemetry_exporter_otlp_grpc.so => /tmp/owent/opentelemetry-cpp/build/exporters/otlp/libopentelemetry_exporter_otlp_grpc.so (0x00007f65437f5000)
libopentelemetry_trace.so => /tmp/owent/opentelemetry-cpp/build/sdk/src/trace/libopentelemetry_trace.so (0x00007f65436f9000)
libopentelemetry_exporter_otlp_grpc_client.so => /tmp/owent/opentelemetry-cpp/build/exporters/otlp/libopentelemetry_exporter_otlp_grpc_client.so (0x00007f6543176000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f6542f94000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6542f79000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6542d87000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6543b93000)
libopentelemetry_otlp_recordable.so => /tmp/owent/opentelemetry-cpp/build/exporters/otlp/libopentelemetry_otlp_recordable.so (0x00007f6542a57000)
libopentelemetry_common.so => /tmp/owent/opentelemetry-cpp/build/sdk/src/common/libopentelemetry_common.so (0x00007f6542a42000)
libopentelemetry_resources.so => /tmp/owent/opentelemetry-cpp/build/sdk/src/resource/libopentelemetry_resources.so (0x00007f6542965000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6542816000)
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f6542783000)
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f65424ad000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f65424a5000) |
What is the compatibility issue here? Thanks. |
Yes, but |
When compiling with the latest MSVC (17.3) , the std::string array can not convert to |
|
Please ignore this. I just realized it is possible for an instrumentation library to have a dependency on both log and trace exporters. |
Another nit comment, now that the
Not blocker for this PR as if required it can done later in #1598 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit comments. Thanks for the fix.
…ory`. + Fix compatibility of OTLP log unit tests for MSVC. Signed-off-by: owent <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
4581b85
to
30e4586
Compare
Thanks and |
Signed-off-by: owent admin@owent.net
Fixes #1603
Fixes #1605
Changes
OtlpGrpcMetricExporterFactory
andOtlpHttpMetricExporterFactory
.OtlpGrpcClient
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes