Skip to content

"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

@konicasaini

Description

@konicasaini

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions