-
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
Align log_level option + central config #321
Comments
Yes, I think it does. The current way we recommend configuring logging is correct, but a little bit user-hostile. Having an easy way to get our agent logging more verbosely is probably a good thing to have, and aligns us with the other agents.
I think we could make it dynamic for python but it would require a re-work of our configuration handling. We would need to add the ability to tie function calls to configuration changes in our remote config implementation, because we would have to execute code to change the log level. Should be doable, but it's a non-trivial amount of work.
This is where I'm most torn. I'm currently leaning "no" because I think it's asking for user confusion. |
@sqren would it be feasible for the central config UI to have a different set of options in a dropdown for each agent? |
All is good for Ruby 👍 |
@felixbarny yes, we can have a dropdown field with a different set of options for each agent. |
@felixbarny should this be an option that is available for all agents? ie, will it be available when we want to create a configuration for all services? In that case, how do we decide what option values should be shown? As a reference, this is how it currently looks when you want to create a configuration for all services: |
When we go with different values for each agent, I guess it's not feasible to show the Are there plans to create configurations for all Ruby agents, for example, or based on other metadata like availability zones or global labels? |
@felixbarny I'm not aware of any plans. |
I just realized that Currently, the central config UI has a just plain text input field. There are two sensible ways forward Option 1: Contintue with per-agent values Option 2: Take the opportunity to align If we go down this route I'd propose consolidating on these values: The Personally, I'm slightly in favor of option 2. It seems like it's not a lot of effort™ and there's not a lot of potential for confusion. Not aligning feels a bit like a missed opportunity to make it easier for the user. |
+1 on aligning. It means that we can offer a better UX in the agent configuration wizard. |
Aligning should be fine. That list is very convenient for the python agent, it aligns very well with what's available by default. |
+1 on aligning. One minor comment regarding the naming of the levels: I would recommend |
Superseded by #332 |
Reopening this issue to track the meta status of this feature |
Currently, all agents except the Python agent support the
log_level
option.We'd like to add this to central config to make it easier to increase the log level on-the-fly to troubleshoot issues without having to restart the application.
Open Questions
log_level
option make sense for Python? Currently, the log level is configured via the framework's log config. Would adding an Elastic APM specificlog_level
option interfere with that? How do other agents, such as the .NET agent handle this that can also be configured via the framework's logging config?Status
Spec: #332 ✅
The text was updated successfully, but these errors were encountered: