Skip to content

Add APM agent configuration #1196

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Add APM agent configuration #1196

wants to merge 12 commits into from

Conversation

tobio
Copy link
Member

@tobio tobio commented Jul 9, 2025

Fixes #315

A couple of things:

  • This is largely AI generated 🥳
  • Broken API specs are super annoying
  • This resource is explicitly setting the X-ElasticAPIVersion header. I can pull this out, but that means more code in transform_schema which I don't really want to add to unless it's strictly required. When these endpoints are eventually moved to the automatically generated schema (as opposed to the hand crafted one in use today), the existing code handling this header will kick in and we can tidy it up.

@tobio tobio requested a review from wandergeek July 9, 2025 12:16
@tobio tobio self-assigned this Jul 9, 2025
@tobio tobio requested review from dimuon and a team July 9, 2025 12:22
Steps: []resource.TestStep{
{
Config: testAccResourceAgentConfigurationCreate(serviceName),
Check: resource.ComposeTestCheckFunc(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it makes sense to check id too.

tflog.Trace(ctx, fmt.Sprintf("Created APM agent configuration with ID: %s", id))

resp.Diagnostics.Append(resp.State.Set(ctx, &plan)...)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some resources in this provider (maybe ones based on SDKv2) call read in scope of create/update calls but it seems we don't use this pattern here. IIRC, the EC provider also calls read inside create/update calls. Does it make sense to do this here too?

Co-authored-by: Dmitry Onishchenko <8962171+dimuon@users.noreply.github.com>
tobio and others added 4 commits July 19, 2025 07:39
Co-authored-by: Dmitry Onishchenko <8962171+dimuon@users.noreply.github.com>
The fix has been merged into Kibana/main
@tobio tobio requested a review from dimuon July 19, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Support Kibana APM agent-configuration
2 participants