Custom Exporter | Now able to integrate custom exporter writing in java-sdk with java-instrumentation #6925
Unanswered
NikunjPatel31
asked this question in
Q&A
Replies: 2 comments 1 reply
-
facing same issue. don't know how to do changes in sdk and then use it in java-instrumentation |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm struggling with modifying the SDK and applying some changes in Java instrumentation. I'm not sure how to go about it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to write all the traces into file before they are send to collector. For this I made necessary changes in
**OtlpHttpSpanExporter -> export**
method in Opentelemetry-java ( https://github.com/open-telemetry/opentelemetry-java ) . Below is the code of export method.Now I am running
gradle build -x test --warning-mode all
command to create .jar file. Once this jar file is generated I am add this jar toproject settings -> Libraries -> New Project Library
from intellij. Then I am generating .jar file of agent by running following commandgradle build -x test --warning-mode all
. Once this .jar file is generated I am using this .jar file to bind it with my application.Now whenever I am trying to generate trace, file is not getting created. I am able to see the traces at jaejar but file is not getting generated.
I have tried to replace the .jar file from .m2/ directory but still the result is same.
Please let me know what I am doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions