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

Excessive log output if an open tracing feature is enabled without an OpentracingTracerFactory #2928

Closed
kgibm opened this issue Apr 2, 2018 · 3 comments
Assignees

Comments

@kgibm
Copy link
Member

kgibm commented Apr 2, 2018

If the features opentracing-1.0, mpOpenTracing-1.0 or microProfile-1.3 are enabled without the required user feature providing the OpentracingTracerFactory, then there will be three error messages for each JAX-RS request (along with one FFDC):

[ERROR   ] CWMOT0001E: Invocation of user supplied OpentracingTracerFactory.newInstance(...) method failed with Exception. Message = null
[ERROR   ] CWMOT0002E: No Tracer is available for an inbound request. The inbound request will not be correlated with the upstream service.
[ERROR   ] CWMOT0003E: The Span created for an inbound request is not available for the response to the request. The inbound request will not be correlated the upstream service.

This is excessive and floods the logs proportional to JAX-RS workload.

@kgibm kgibm self-assigned this Apr 2, 2018
@kgibm
Copy link
Member Author

kgibm commented Apr 2, 2018

PR #2933

@kgibm
Copy link
Member Author

kgibm commented Apr 9, 2018

Committed in 7ae056b

@kgibm kgibm closed this as completed Apr 9, 2018
@kgibm
Copy link
Member Author

kgibm commented Apr 17, 2018

See also PR #3013

Final changes:

Added a new error message CWMOT0008E which will be printed only once (per configuration loading) if there is no OpentracingTracerFactory.

The CWMOT0001E, CWMOT0002E, and CWMOT0003E are no longer printed on each request that doesn't have a OpentracingTracerFactory.

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

1 participant