Giter Club home page Giter Club logo

Comments (3)

binaryseed avatar binaryseed commented on August 26, 2024

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.

ananthakumaran avatar ananthakumaran commented on August 26, 2024

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.

realcorvus avatar realcorvus commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.