question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Always getting NoopTracer

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eyalkorencommented, Dec 30, 2018

@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.

0reactions
prashant-shahicommented, Dec 29, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found