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 initial documentation for OpenTracing and Jaeger extensions #521

Merged
merged 1 commit into from
Jan 16, 2019
Merged

Add initial documentation for OpenTracing and Jaeger extensions #521

merged 1 commit into from
Jan 16, 2019

Conversation

objectiser
Copy link
Contributor

No description provided.

@objectiser
Copy link
Contributor Author

This documentation refers to a quickstart that is provided in quarkusio/quarkus-quickstarts#20.

@cescoffier cescoffier merged commit bf87432 into quarkusio:master Jan 16, 2019
@cescoffier cescoffier added this to the 0.6.0 milestone Jan 16, 2019
@cescoffier cescoffier deleted the opentracingdocs branch January 16, 2019 09:52
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@objectiser Apparently, @cescoffier merged it but there are a few things that should be fixed. And a few things that might be improved but feel free to ignore my style comments :)

Could you push another PR with the fixes. Thanks.

----

Notice that there is no tracing specific code included in the application. By default, requests sent to this
endpoint will be traced without any code changes being required. It is also possible to enhance the tracing information. For more information on this, please see the https://github.com/eclipse/microprofile-opentracing/blob/master/spec/src/main/asciidoc/microprofile-opentracing.asciidoc[ MicroProfile OpenTracing specification].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor, there's one too many spaces here: [ MicroProfile. It should be [MicroProfile


The supplied `jvm.args` are used to configure the default OpenTracing tracer (Jaeger). If the `JAEGER_SERVICE_NAME` property is not provided then a "no-op" tracer will be configured, resulting in no tracing data being reported to the backend. The other properties are explained in the https://www.jaegertracing.io/docs/latest/client-features/[Tracer configuration via environment variables] section of the Jaeger documentation.

NOTE: Currently the tracer can only be configured to report spans directly to the collector via HTTP, using the `JAEGER_ENDPONT` property. Support for using the Jaeger agent, via UDP, will be available in a future version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/JAEGER_ENDPONT/JAEGER_ENDPOINT/


NOTE: Currently the tracer can only be configured to report spans directly to the collector via HTTP, using the `JAEGER_ENDPONT` property. Support for using the Jaeger agent, via UDP, will be available in a future version.

The next step is to startup the tracing system to collect and display the captured traces:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

startup: I think you mean start.

docker run -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 9411:9411 jaegertracing/all-in-one:latest
----

Once both are started, you can request the provided endpoint:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say Once both the application and the tracing system are started....


[source, text]
----
docker run -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 9411:9411 jaegertracing/all-in-one:latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear when this one is really started, maybe we should add info about that. The user should wait for the Connected to peer message?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved starting the tracing system as the first step - by the time the user would have started up the app and made the curl request, it would definitely have started - would prefer not to be specific about what log messages to look for.

maxandersen pushed a commit to maxandersen/quarkus that referenced this pull request Nov 5, 2022
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants