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

"example_otlp_grpc_log" sample not running. libopentelemetry_exporter_otlp_grpc_log.so and libopentelemetry_exporter_otlp_grpc.so library symbols are mixing/overlapping when used together. #1603

Closed
konicasaini opened this issue Sep 9, 2022 · 0 comments · Fixed by #1606
Assignees
Labels
bug Something isn't working

Comments

@konicasaini
Copy link

konicasaini commented Sep 9, 2022

Describe your environment
https://github.com/open-telemetry/opentelemetry-cpp; main branch

Steps to reproduce

  1. git clone latest opentelemetry-cpp
  2. mkdir build
  3. cmake -DBUILD_TESTING=OFF -DWITH_METRICS_PREVIEW=OFF -DWITH_LOGS_PREVIEW=ON -DWITH_OTLP=ON -DWITH_OTLP_GRPC=ON -DWITH_OTLP_HTTP=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=ON -DWITH_PROMETHEUS=OFF ..
  4. make

To run example_otlp_grpc_log
cd ~/(path to opentelemetry-cpp)/build/examples/otlp/
./example_otlp_grpc_log

What is the expected behavior?
What did you expect to see?
Resource SchemaURL:
Resource labels:
-> service.name: STRING(unknown_service)
-> telemetry.sdk.version: STRING(1.6.0)
-> telemetry.sdk.name: STRING(opentelemetry)
-> telemetry.sdk.language: STRING(cpp)
ScopeLogs #0
ScopeLogs SchemaURL: https://opentelemetry.io/schemas/1.11.0
InstrumentationScope default 1.0.0
LogRecord #0
ObservedTimestamp: 1970-01-01 00:00:00 +0000 UTC
Timestamp: 2022-09-09 10:54:09.260830957 +0000 UTC
Severity: DEBUG
Body: body
Trace ID: 58fadb6c445f6f741eb5e7466cb89480
Span ID: 06eb3556ba870e11
Flags: 1
{"kind": "exporter", "data_type": "logs", "name": "logging"}

What is the actual behavior?
What did you see instead?
Nothing
Its just stuck
threads are creating and exiting continuously until forcefully killing application.

Additional context
Add any other context about the problem here.
About "opentelemetry_exporter_otlp_grpc and opentelemetry_exporter_otlp_grpc_log library symbols are mixing when used together" when ran ./example_otlp_grpc_log using debugger (gdb) found out libopentelemetry_exporter_otlp_grpc_log.so library symbols are getting overlapped by libopentelemetry_exporter_otlp_grpc.so symbols.

When both used separately (opentelemetry_exporter_otlp_grpc, opentelemetry_exporter_otlp_grpc_log), working as expected.

@konicasaini konicasaini added the bug Something isn't working label Sep 9, 2022
@konicasaini konicasaini changed the title example_otlp_grpc_log not running. libopentelemetry_exporter_otlp_grpc_log.so and libopentelemetry_exporter_otlp_grpc.so library symbols are mixing/overlapping when used together. "example_otlp_grpc_log" sample not running. libopentelemetry_exporter_otlp_grpc_log.so and libopentelemetry_exporter_otlp_grpc.so library symbols are mixing/overlapping when used together. Sep 9, 2022
@owent owent self-assigned this Sep 9, 2022
owent added a commit to owent/opentelemetry-cpp that referenced this issue Mar 6, 2023
Add unit test to check open-telemetry#1603 .

Signed-off-by: owent <admin@owent.net>
owent added a commit to owent/opentelemetry-cpp that referenced this issue Mar 6, 2023
Signed-off-by: owent <admin@owent.net>
Update CI job name

Signed-off-by: owent <admin@owent.net>
Add CI job to build shared libraries with static gRPC.
Add unit test to check open-telemetry#1603 .

Signed-off-by: owent <admin@owent.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants