Auto-instrumenting application code? #746
-
Hey quick question, reading the available instrumenters and how they're generating spans, it seems to me there's no way to automatically instrument application code, am I correct in that? For instance, in this patch for active record I see that every AR method is patched to create a child span. Am I understanding correctly that in order to instrument custom application code, I'd need to pepper the codebase with similar child-span creations, there isn't something that does it for me automatically, right? For instance, if I have class SomeController < ApplicationController
def index
data = DataCalculator.run!
render json: data
end
end and in turn the Thanks in advance, just want to make sure I'm not missing something ;) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are correct. We do not have any instrumentation that generates spans for custom application code. That you must instrument yourself. |
Beta Was this translation helpful? Give feedback.
You are correct.
We do not have any instrumentation that generates spans for custom application code.
That you must instrument yourself.