Skip to content

[9.1] [APM] Remove the java agent auto-attacher from the APM onbarding (#249043)#249281

Merged
jennypavlova merged 1 commit intoelastic:9.1from
jennypavlova:backport/9.1/pr-249043
Jan 15, 2026
Merged

[9.1] [APM] Remove the java agent auto-attacher from the APM onbarding (#249043)#249281
jennypavlova merged 1 commit intoelastic:9.1from
jennypavlova:backport/9.1/pr-249043

Conversation

@jennypavlova
Copy link
Copy Markdown
Member

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…stic#249043)

Closes elastic#248894

## Summary
This PR removes the Java agent auto-attacher from the APM onboarding.
The Java agent "Auto-Attachment" tab is no longer visible in the Fleet
APM integration UI. All related runtime attachment components and code
have been removed.
The onboarding now only shows manual instrumentation steps for all
agents.

## Changes:
- Files Deleted: entire `runtime_attachment/` directory + unused
translations:
- Changed to use PackagePolicyEditExtensionComponentProps for proper
Fleet integration typing
- Extracts `apmServerUrl` and `secretToken` from `newPolicy` and passes
them to child components
- Fixed the key prop to use ${agentName}-${variantId} for uniqueness

## How to test
- I am creating a cloud deployment with this PR and we should be able to
test there
- @jackshirazi Could you please verify if everything still works on the
agent side with those changes

- [x] Tested on cloud

✅ Tested using the PR cloud deployment:
- Go to APM -> Fleet -> Agent policies -> Elastic Cloud agent policy ->
Edit integration (Edit Elastic APM integration)
- The Java auto-attacher tab is not present ✅

<img width="1913" height="1010" alt="image"
src="https://github.com/user-attachments/assets/2bf9d0ad-ecc2-44b9-b6b9-fc3eeac9d068"
/>

- [x] Tested with Java agent (if needed ❓)

(cherry picked from commit da35df4)

# Conflicts:
#	x-pack/platform/plugins/private/translations/translations/de-DE.json
#	x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/discovery_rule.tsx
#	x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/edit_discovery_rule.tsx
#	x-pack/solutions/observability/plugins/apm/public/components/fleet_integration/apm_agents/runtime_attachment/runtime_attachment.tsx
@jennypavlova jennypavlova added the backport This PR is a backport of another PR label Jan 15, 2026
@jennypavlova jennypavlova enabled auto-merge (squash) January 15, 2026 17:29
@botelastic botelastic bot added the Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation label Jan 15, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-presentation-team (Team:obs-presentation)

@jennypavlova jennypavlova merged commit 59c516e into elastic:9.1 Jan 15, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants