-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add custom parameters to transactions #129
Comments
Good question! The main reason we don't support custom parameters for Node traces is that we haven't gotten around to it yet. There are two problems to be solved:
It's probably a simple enough feature to add, but it'll require testing, documentation, and the like. Custom parameters, metrics, and instrumentation are close to the top of our list of things to add, and should be coming pretty soon. If you want to try hacking things up for yourself in the meantime, you can give it a shot, but don't be surprised if things get weird. |
Hi @othiym23 thanks for the prompt reply!
I suppose the external facade API with which the user interacts in order to add custom parameters to transactions is the most important API surface to have in mind when it comes to design decisions. Are you also referring to the internal API design?
Is there any official documentation on this? |
What documentation... 😒 Actually, it's not as bad as that. We're moving to a new, more consistent way of handing transaction attributes, that will be much better documented (at least internally), but for now, it's mostly lore. The a Ruby or Python agent approach is probably the one we'll follow. And I was referring exclusively to the outward-facing API -- it should look like the other agents', but there's some special-purpose logging and error-handling for Node because of the complexity of the async transaction tracer (which is an issue for us, not you -- that was me explaining why the feature wasn't there yet). |
Got it! I will close this for now and, if I manage to cook something in the meanwhile, I'll keep you posted. |
…3acd75f3d16a8a6fdb [Snyk] Security upgrade mongodb from 4.13.0 to 4.17.0
docs: update slack invite link
Release v4.1.2
Release v4.1.2
According to http://docs.newrelic.com/docs/features/collecting-custom-parameters
newrelic agent for node.js is the only agent not supporting custom parameters.
This is a very important feature for me so I decided to investigate why.
By looking at the following piece of code
node-newrelic/lib/transaction/trace.js
Line 134 in a6f8b61
I noticed that it is actually sending custom parameters to the server, but for some reason they are "non modifiable".
Trying to understand the "currently not user-modifiable" comment, does it mean "not modifiable, PERIOD" or "not easily modifiable but if you find a way to stuff parameters in then I will send them for you"?
I really need this feature.
Is it too troublesome, or time consuming to implement? Is it on the roadmap? Do you have plans for this?
I would be glad to contribute if you give me the some directions on what exactly would be required to make this properly.
The text was updated successfully, but these errors were encountered: