Loading
feat(settings): add o11y_provisioner_url and o11y_provisioner_api_key
What does this MR do?
Adds the two GitLab Observability provisioner settings that GitLab 19.6 documents in the application settings API:
Settings.O11yProvisionerURLdecodeso11y_provisioner_url.UpdateSettingsOptions.O11yProvisionerAPIKeyandUpdateSettingsOptions.O11yProvisionerURLsendo11y_provisioner_api_keyando11y_provisioner_url.
Settings gets no field for the API key, because GitLab accepts it on update but never returns it (application_setting.rb removes it from the response). The documentation says both settings are available on GitLab.com only.
Is this a breaking change?
No. It adds three fields and changes nothing else.
How was this tested?
- Two new tests: the update sends exactly the two keys and decodes the URL from the response, and the get decodes the URL.
go test work -racepasses on Go 1.26.10 and 1.27.3.make generateandmake fmtchange no file, and golangci-lint 2.15.0,buf formatandbuf lintreport nothing.- With any one of the three new json tags misspelled, the tests that read that tag fail.
I found the gap while maintaining gitlab-mcp-server, which is built on this library.