newrelic / newrelic/newrelic-java-agent
Pinning Browser Agent by Config
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 240
- Forks
- 170
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 21
Description
Related to: https://new-relic.atlassian.net/browse/NR-617347
The idea is to add a config option in your Agent to specify a specific version of the Browser Agent. You will then pass that in the Connect payload as browser_monitoring.version, which will result in getting back that version of the Browser Agent to inject. See the Agent spec for more details and the linked Feature Request for the reason behind the request. If this does not apply to your Agent, you can close this ticket.
Testing browser_monitoring.version:
- To return a
js_agent_loader, you must enable browser monitoring for your test application via the UI.- On the side left panel -> Integrations & Agents -> Browser Monitoring -> Connect browser data to APM -> Select your application
- Not all browser agent versions are currently published to Staging, so some specific browser agent versions may not return loaders. Here is a list of versions that do/do not exist in Staging. All versions are published to Production if you choose to test there.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the Java agent for browser monitoring configuration and Connect payload construction, then read the linked Agent spec and feature request for the required behavior. Test with browser monitoring enabled and verify that the configured version is sent as browser_monitoring.version and produces the expected Browser Agent loader where that version is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100