Make compatible with 'EU' accounts

Created on 13 December 2024, 5 months ago

Problem/Motivation

We have an account in the 'EU' region for NewRelic, this means that we need to make API requests to:

'https://api.eu.newrelic.com/v2'

Instead of:

'https://api.newrelic.com/v2'

Otherwise the calls to log deployments do not work. Curiously the listing of applications does work on either endpoint!

This is discussed in the NewRelic docs here: https://docs.newrelic.com/docs/accounts/accounts-billing/account-setup/c...

Steps to reproduce

Get an 'EU' NewRelic account, try to use it to record a deployment.

Proposed resolution

Add a configuration option to select the datacenter to use, and then respect that option in the API client in \Drupal\new_relic_rpm\Client\NewRelicApiClient

Remaining tasks

Add the configuration option, schema, update path and code to use the correct URL. And a UI on the config form.

User interface changes

An element on the config form that allows specifying the data center.

API changes

We'll probably want to introduce a method to get the API_URL.

If possible, we should deprecate the usage of the const on the API client, not sure we can do this?

Data model changes

Adding the new data center option to config.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom steven jones

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024