Obs > APM > Settings > Create Agent Configuration: only allows setting two of many central config vars if no service name info #196958
Labels
apm:settings
apm
bug
Fixes for quality problems that affect the customer experience
sdh-linked
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
Kibana version: v8.15.1
Elasticsearch version: v8.15.1
Server OS version: Elastic cloud deployment in GCP us-west-1
Browser version: Firefox 131.0.3 (aarch64)
Browser OS version: macOS
Original install method (e.g. download page, yum, from source, etc.): cloud deployment
Describe the bug:
If I attempt to create an APM Agent Configuration with
Service name: All
(andEnvironment: All
), then the Kibana UI only offers a way to set two of the settings (transaction_max_spans
andtransaction_sample_rate
,kibana/x-pack/plugins/observability_solution/apm/common/agent_configuration/setting_definitions/general_settings.ts
Lines 452 to 480 in e955cb0
The same thing happens if I manually enter a
Service name: ...
value that isn't in the populated menu list of known service names with recent data.I did have a couple services with recent data, so this wasn't a completely empty deployment.
Expected behavior:
I would expect to be able to see some (all?) of the other configuration vars. I understand that these agent_configuration settings have
excludeAgents
andincludeAgents
fields used to limit the presented config settings to those relevant for the language agent for the given service. However, if the target is "All" service names, or an unknown one, then it is limiting to only allow a subset of the config settings.The motivating case for my reporting this issue is a user that was not getting APM data for a service at all (or at least not for a long while). One theory for not receiving transaction data was that the sampling flag in incoming HTTP request
traceparent
headers was resulting in all transactions being discarded. A possible solution of this would be to use thetrace_continuation_strategy
config var. However, because of this issue one cannot create an Agent Configuration that has a value fortrace_continuation_strategy
.Errors in browser console (if relevant): I did not see any, and I don't think it is relevant.
Any additional context:
One guess as to why those particular two settings are always shown is that they use
excludeAgents
rather thanincludeAgents
. However, there is a 3rd setting that also usesexcludeAgents
and it is not included:If Kibana behaviour were to change here to show all possible config vars if the target APM agent language was unknown, then possibly it would be nice if the UX changed to show the
excludeAgents
andincludeAgents
values in some form to give the user at least a start at knowing which config settings would be applicable. Yes, this might open a bit of a can of worms for users expecting a certain config setting to work for a language that doesn't support it.If there is a concern that passing a config setting to a language agent that doesn't support it could cause harm: the APM agents spec requires that APM agents ignore central config settings they don't know. https://github.com/elastic/apm/blob/main/specs/agents/configuration.md#dealing-with-errors
The text was updated successfully, but these errors were encountered: