Always getting NoopTracer
See original GitHub issueI’m using the java agent to send custom metrics to apm. However, the instrumentation provides me always a NoopTracer (and consequently a NoopTransaction)
private static final ElasticApm elasticApm = ElasticApm.get();
// elasticApm --> has Noop Tracer
Transaction apmTransaction = elasticApm.startTransaction();
//apmTransaction --> is NoopTransaction
calling the rest of the public api to start/stop transactions/spans just doesn’t cause any other effect (as expected since everything is noop)
I’ve placed src/main/resources/elasticapm.properties file as well as set properties as System properties
Is there anything I’m missing?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
opentelemetry::trace::NoopTracer - Rust - Docs.rs
API documentation for the Rust `NoopTracer` struct in crate `opentelemetry`.
Read more >opentracing - Go Packages
A NoopTracer is a trivial, minimum overhead implementation of Tracer for which all operations are no-ops. The primary use of this implementation ...
Read more >GlobalTracer (OpenTracing-util 0.31.0 API) - javadoc.io
Global tracer that forwards all methods to another tracer that can be configured by calling register(Tracer) . The register method should only be...
Read more >opentracing/opentracing-java - Gitter
I mainly found it a bit odd since now if tracing is disabled and you get the GlobalTracer it will return a NoopTracer...
Read more >Tracing API - OpenTelemetry
Get a Tracer ... Get the currently active span from the implicit context. ... This span is often the child of a remote...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@coolboi567 Unfortunately we do not automatically support Vert.x yet. So, answering your question- you will have to manage the transaction part manually. Regarding spans- it depends. Once you manage the transactions, spans would be created and reported automatically if you are using a supported framework, otherwise you will have to do that manually as well. Please have a look in our supported technologies page for details.
If you do decide to manually trace you app, you can use our public API, but please notice that you can’t use the annotation API as they do not provide you with the flexibility for transaction creation/activation/deactivation/end you would need for Vert.x.
Another option is using our OpenTracing bridge.
I hope this helps. For any further questions, please use our discuss forum, where we will also love to hear if and how you decided to trace your application.
@amexboy I thought the same, but the java agent is not automatically doing the same.
@felixbarny Hey Felix, your response on the same would really be helpful.