Comments (3)
Yes, we leverage the built in Erlang tracer, of which there can only be one at a time.
You might be able to turn it off with a call to erlang.trace
http://erlang.org/doc/man/erlang.html#trace-3
:erlang.trace(:all, false, [])
Another approach would be to get the data you need via the agent (ie: you could put a function tracer on that function)
Is there something about the recon_trace
you need in particular?
from elixir_agent.
iex([email protected])5> :erlang.trace(:all, false, [])
0
I tried it, the error still happens
Another approach would be to get the data you need via the agent (ie: you could put a function tracer on that function)
Is there something about the recon_trace you need in particular?
There are two kinds of instrumentation. One is proactive, we make a guess on what would be useful and add logs/metrics/traces earlier. We could definitely use new_relic trace for these cases.
The second kind is reactive, where we try to figure out what's going on and most of the time, we won't have enough time to add logs/traces and re-deploy the code. We use recon extensively in these cases. So far we have solved memory leaks, tcp connection leaks, ets table growth and been able to find the root cause of message queue overload etc. To give a specific example, we enabled newrelic transaction on a long-running worker process which might make 1000s of http requests. This caused high memory usage. We tracked it back by looking at the size of ets tables controlled by newrelic.
we use recon_trace as an on the fly logger, so we can quickly see what's passed between functions. It also has a rate limiter which prevents from capturing too much data and crashing the node.
Given that we can have only one tracer, Ideal solution for us would be the ability to disable features that depends on tracer before starting the debugging session and reenable it back when we finish the debugging session.
from elixir_agent.
If anyone is finding this issue by googling "can only have one tracer per process" while using the New Relic agent, updating my config to:
config :new_relic_agent,
...
disable_erlang_trace: true
is how I was able to disable Erlang tracing.
from elixir_agent.
Related Issues (20)
- Incompatible with Elixir 1.8.x HOT 1
- DistributedTrace.generate_sampling timeouts. HOT 1
- Long poll requests HOT 1
- Allow Configuration of CA Certificates HOT 3
- Provide Notice Errors in Elixir Agent HOT 3
- Connection timeout connecting to `collector.eu01.nr-data.net` HOT 12
- Connect timeout to the collector should be higher
- Log context break HOT 1
- Transactions often report wrong LiveView HOT 2
- Dumb question about crashes HOT 2
- Bad attribute on redis encoded string HOT 3
- Making Distributed Tracing configurable HOT 10
- Proxy configuration
- ~100mb memory usage when idle HOT 1
- Need some way to config the default log level
- Is Bandit HTTP server supported?
- Errors not recorded since upgrading to Elixir 1.15 HOT 4
- Phoenix LiveView metrics identified as Phoenix.LiveView.Plug
- Error parsing error info in logger translator HOT 7
- Failed to send harvest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elixir_agent.