-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
chore: added new relic OTLP exporter #28480
Conversation
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6692937115. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6703327091. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
2a61803
to
922fde9
Compare
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6703500919. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
922fde9
to
fbe5b3b
Compare
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6719464989. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6719765458. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6724218512. |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6724369072. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6724625825. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6752628846.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6752648880.
|
const { applicationId, otlpLicenseKey } = newRelic; | ||
|
||
const NEW_RELIC_OTLP_ENTITY_NAME = "Appsmith Frontend OTLP"; | ||
const NEW_RELIC_OTLP_ENDPOINT = "https://otlp.nr-data.net:4318"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel that we should move this url to environment variables too. Not sure if hard coding it here is appropriate even though it may be harmless.
@trishaanand Can you please share your viewpoints on this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These values will be fairly static, the collector endpoint is not dynamic and is available in new relic's documentation in the public domain. Its the same endpoint all new relic users need to export their telemetry information to.
If its necessary I can still do this but there are several places i need to update these vars, which i do not have to access to and will take some time to test it out. Let me know if we can defer this @rajatagrawal @trishaanand for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc : @sharat87 FYI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is a common url for everyone using newrelic to post their OTLP metrics to, I think that we can keep it in frontend code only then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to hard-code this, especially if it's going to be the same for everyone. Overall, my stance for taking decisions on things like this, is fewer configurable parameters on the system means fewer combinations of configurations that we need to test. Basically convention over configuration. 🙂
/build-deploy-preview skip-tests=true |
/ok-to-test sha=f2385dfda12cac8739c217aa708a9dca86bbdb33 |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6761260945. |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/6761263320. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6761263320.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6761263320. |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6767721693. |
/ok-to-test sha=435dc942ce15c92068c918dcad26e48b31d316b1 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/6767725938. |
Deploy-Preview-URL: https://ce-28480.dp.appsmith.com |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6767725938.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6767725938.
To know the list of identified flaky tests - Refer here |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6767725938. |
- Added new relic OTLP exporter to export eval traces, click event and api calls. - Conditionally loading both browser agent and OTLP scripts based on env variables. Fixes #28504 and #28506 - Chore (housekeeping or task changes that don't impact user perception) - [x] Manual - [ ] JUnit - [ ] Jest - [ ] Cypress > > > Add Testsmith test cases links that relate to this PR > > > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
## Description - Added new relic OTLP exporter to export eval traces, click event and api calls. - Conditionally loading both browser agent and OTLP scripts based on env variables. #### PR fixes following issue(s) Fixes #28504 and #28506 #### Type of change - Chore (housekeeping or task changes that don't impact user perception) #### How Has This Been Tested? - [x] Manual - [ ] JUnit - [ ] Jest - [ ] Cypress > > #### Test Plan > Add Testsmith test cases links that relate to this PR > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed
Description
PR fixes following issue(s)
Fixes #28504 and #28506
Type of change
How Has This Been Tested?
Test Plan
Issues raised during DP testing
Checklist:
Dev activity
QA activity:
Test Plan Approved
label after Cypress tests were reviewedTest Plan Approved
label after JUnit tests were reviewed