open-telemetry / open-telemetry/opentelemetry-java

java jni invoke tracing

Open
#7,116 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
2.5k
Forks
1k
Avg merge
3d 17h
Merged PRs (30d)
58

Description

What are you trying to achieve?

I have a doubt now. Suppose I use jni in a Java program to call a c++ sdk written by myself. At the same time, the relevant opentelemetry SDK is connected to the Java application and C++ SDK to report trace data. How can I combine the span generated in the Java program with the span generated in the C++ program? I don't really want to use the method of passing parameters to transparently pass the traceId and spanId generated in the Java program to the c++ sdk. Is there any other way?

Additional context.

Add any other context about the problem here. If you followed an existing documentation, please share the link to it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is named, so begin by locating the Java JNI and C++ tracing integration documentation. Done would require a documented, supported way to correlate the Java and C++ spans without manually passing trace and span IDs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, java
Domain
observability
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.