-
Notifications
You must be signed in to change notification settings - Fork 115
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
[agents] definition of ACTIVE/DISABLED_INSTRUMENTATION #92
Comments
I would prefer to have two separate Boolean configuration settings:
|
@SergeyKleyman I was thinking the same. The main issue I have with this is the subtle difference in meaning between "enabled" and "active" - I've not had any better ideas for an alternative name to "enabled". I suppose these are not things that people will want to do every day, so maybe that's not a big issue anyway. |
In addition to introduction of |
I like @SergeyKleyman's suggestion and I agree we could probably come up with more telling names. |
Didn't think too long but how about keeping |
Yes, I agree - |
I like the names Just to ensure there are no misunderstandings, the Regarding |
Will |
@felixbarny I hope so. In my mind, this is as close as we can get to |
Personally I think we should just rely on more focused config options like |
@Qard I agree that it's easier to understand and support configuration options that are as orthogonal/independent in their semantics as possible. OTOH use case for making agent's presence as less felt as possible without restarting the application is IMHO so widespread that making an exception for it and introducing an "aggregate" configuration option (instead of having to remember each one of the "atomic" configuration options it's composed of) is worth it. |
Agreed, we can add more focused config as well, but having the ability to disable everything or disable just data recording is user-friendly. What we are voting on
Vote
|
Does |
@Qard yeah, I just forgot about them :) Thanks, updated. |
In the Java Agent, active is basically the same as recording. I’m unsure if
it’s a good idea to change the semantics of it at the same time it gets
deprecated.
…On Fri 9. Aug 2019 at 06:54, Andrew Wilkins ***@***.***> wrote:
@Qard <https://github.com/Qard> yeah, I just forgot about them :) Thanks,
updated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#92?email_source=notifications&email_token=AAQQGCDB7JSQWWF6NSIINZTQDT2BHA5CNFSM4HP7NYZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD35S2LI#issuecomment-519777581>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQQGCE7RUKJHZ5HVL47YW3QDT2BHANCNFSM4HP7NYZA>
.
|
@felixbarny my bad, I forgot we had discrepancies. Agree, let's leave active alone. |
@axw what do you mean "leave it alone"? As in we shouldn't deprecate it after all? If so, what's the use-case of keeping it around? |
@watson sorry for being unclear in my comment. I think the updated description is clearer:
i.e. just put a note in the docs saying that it's replaced by |
And custom instrumentation with an agent with |
IIUC, both So for the Java agent, |
@Qard we could consider doing the same. Though for historic reasons, |
Eyal made me aware that |
I think we agreed on the new configuration options and an issue to implement was created for each agent so we can close this issue, any objections? |
* introduce enabled/recording settings see elastic/apm#92 (comment) Co-authored-by: Colton Myers <[email protected]>
* introduce enabled/recording settings see elastic/apm#92 (comment) Co-authored-by: Colton Myers <[email protected]>
* introduce enabled/recording settings see elastic/apm#92 (comment) Co-authored-by: Colton Myers <[email protected]>
* introduce enabled/recording settings see elastic/apm#92 (comment) Co-authored-by: Colton Myers <[email protected]>
This is an offshoot of #76.
There are some questions about whether
active
anddisableInstrumentations
config should be reloadable, or whether they should be static.Currently, in the Node.js agent, starting the agent with
active: false
would skip instrumentation entirely. This means that it is not possible to dynamically "activate" the agent.Elsewhere, users of the Java agent have assumed that setting
active: false
would completely disable the agent: elastic/apm-agent-java#639. Given the config's name, this is pretty a fair assumption. In that case it was due to metrics which we can fix, but still leaves a question about remote config polling in the future.So, open questions:
active: false
do? Should this just disable event generation, or should it disable all code paths, including remote config polling?active: false
disables remote config polling, should we have some other config that allows the agent to run "dormant" - polling remote config, but not generating events?active: false
disables only event generation, should we have some other config which disables everything, including remote config polling?The text was updated successfully, but these errors were encountered: