You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
graphaelli
added
bug
Fixes for quality problems that affect the customer experience
Team:APM
All issues that need APM UI Team support
labels
Feb 6, 2020
@graphaelli How would you like subsequent request to be handled if the configuration already exists?
I see a few options:
Subsequent requests will return a 409 Conflict if the configuration already exists. By supplying the query param ?overwrite=true subsequent requests will update the existing configuration.
Subsequent request will overwrite the existing configuration unless ?overwrite=false is supplied.
I went for option 1. I'm wondering option 2 is better. Or it should be something third?
Kibana version: 7.x
Describe the bug: Multiple configurations for the same service/environment in APM agent configuration can be created.
Steps to reproduce:
curl 'http://admin:XXX@localhost:5601/api/apm/settings/agent-configuration/new' -H 'Accept: */*' -H 'kbn-version: 7.6.0' -H 'Content-Type: application/json' --data '{"service":{},"settings":{"transaction_sample_rate":1,"capture_body":"off","transaction_max_spans":500}}'
curl 'http://admin:XXX@localhost:5601/api/apm/settings/agent-configuration/new' -H 'Accept: */*' -H 'kbn-version: 7.6.0' -H 'Content-Type: application/json' --data '{"service":{},"settings":{"transaction_sample_rate":1,"capture_body":"off","transaction_max_spans":500}}'
Expected behavior:
2nd call should fail.
Screenshots (if relevant):
related to #57005
The text was updated successfully, but these errors were encountered: