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

Add documentation #2

Open
pszuster opened this issue Jun 13, 2019 · 3 comments
Open

Add documentation #2

pszuster opened this issue Jun 13, 2019 · 3 comments

Comments

@pszuster
Copy link

It would be useful to have some docs on how to use this agent

@jam01
Copy link
Member

jam01 commented Jun 13, 2019

Yeah, docs and examples are in the horizon. Opentracing's Java Agent was deprecated however, the new project Special Agent is starting to achieve some maturity so hopefully soon I'll have some time to migrate to that and then work on a better demo.

@pszuster
Copy link
Author

pszuster commented Jun 13, 2019 via email

@jam01
Copy link
Member

jam01 commented Jun 13, 2019

Ah more or less you have to build a JAR from this project, and you want to start the mule instance with a reference to the JAR like this:

wrapper.java.additional.17=-javaagent:"%OT_HOME%/opentracing-mule-agent.jar"
wrapper.java.additional.17.stripquotes=TRUE

Also, you'll need to provide environment variables for the Jaeger tracer to find the collector, you can check out the jaeger docs for the possible variables but the demo I had used

JAEGER_SAMPLER_MANAGER_HOST_PORT
JAEGER_AGENT_HOST
JAEGER_SERVICE_NAME

Currently this project packages Jaeger because that was the easiest way to get a POC working, but eventually the tracer implementation should definitely be provided by the user in some way or another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants