Skip to content
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

Merged
merged 10 commits into from
Nov 6, 2023
Merged

chore: added new relic OTLP exporter #28480

merged 10 commits into from
Nov 6, 2023

Conversation

vsvamsi1
Copy link
Contributor

@vsvamsi1 vsvamsi1 commented Oct 30, 2023

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?

  • 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

  • My code follows the style guidelines of this project
  • 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
  • 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 have been covered
  • Test plan covers all impacted features and 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

@vsvamsi1
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6692937115.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

@vsvamsi1
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6703327091.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

@vsvamsi1
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6703500919.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 1, 2023

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Nov 1, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6719464989.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

Copy link

github-actions bot commented Nov 1, 2023

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 1, 2023

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Nov 1, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6719765458.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

Copy link

github-actions bot commented Nov 1, 2023

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

@KelvinOm KelvinOm mentioned this pull request Nov 1, 2023
20 tasks
@vsvamsi1 vsvamsi1 marked this pull request as draft November 1, 2023 15:33
@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 1, 2023

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Nov 1, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6724218512.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

@vsvamsi1 vsvamsi1 removed the request for review from KelvinOm November 1, 2023 19:34
@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 1, 2023

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Nov 1, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6724369072.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

Copy link

github-actions bot commented Nov 1, 2023

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 1, 2023

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Nov 1, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6724625825.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

Copy link

github-actions bot commented Nov 1, 2023

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 1, 2023

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Nov 4, 2023

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

Copy link

github-actions bot commented Nov 4, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6752628846.
Commit: c6f00231fc9f4d46d219f6d7ebf0383959cc1174.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/Git/ExistingApps/v1.9.24/DSCrudAndBindings_Spec.ts

  2. cypress/e2e/Regression/ClientSide/Widgets/Form/FormWidget_Select_TreeSelect_spec.js
To know the list of identified flaky tests - Refer here

Copy link

github-actions bot commented Nov 4, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6752648880.
Commit: e060f609bd516ce4e8003a9765efc120a9cda1f1.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/Widgets/Modal/Modal_spec.ts

  2. cypress/e2e/Regression/ClientSide/Widgets/Multiselect/Multi_Select_Tree_spec.js
  3. cypress/e2e/Regression/ServerSide/OnLoadTests/JSOnLoad2_Spec.ts
To know the list of identified flaky tests - Refer here

const { applicationId, otlpLicenseKey } = newRelic;

const NEW_RELIC_OTLP_ENTITY_NAME = "Appsmith Frontend OTLP";
const NEW_RELIC_OTLP_ENDPOINT = "https://otlp.nr-data.net:4318";
Copy link
Contributor

Choose a reason for hiding this comment

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

@vsvamsi1

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 ?

Copy link
Contributor Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

cc : @sharat87 FYI

Copy link
Contributor

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.

Copy link
Member

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. 🙂

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 5, 2023

/build-deploy-preview skip-tests=true

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 5, 2023

/ok-to-test sha=f2385dfda12cac8739c217aa708a9dca86bbdb33

Copy link

github-actions bot commented Nov 5, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6761260945.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

Copy link

github-actions bot commented Nov 5, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/6761263320.
Workflow: Appsmith External Integration Test Workflow.
Commit: f2385dfda12cac8739c217aa708a9dca86bbdb33.
PR: 28480.

Copy link

github-actions bot commented Nov 5, 2023

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

Copy link

github-actions bot commented Nov 5, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6761263320.
Commit: f2385dfda12cac8739c217aa708a9dca86bbdb33.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/BugTests/Bug27817_Spec.ts

  2. cypress/e2e/Regression/ClientSide/Widgets/Sliders/CategorySlider_spec.ts
To know the list of identified flaky tests - Refer here

Copy link

github-actions bot commented Nov 6, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6761263320.
Commit: f2385dfda12cac8739c217aa708a9dca86bbdb33.
Cypress dashboard url: Click here!
All cypress tests have passed 🎉🎉🎉

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 6, 2023

/build-deploy-preview skip-tests=true

Copy link

github-actions bot commented Nov 6, 2023

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6767721693.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 28480.
recreate: .

@vsvamsi1
Copy link
Contributor Author

vsvamsi1 commented Nov 6, 2023

/ok-to-test sha=435dc942ce15c92068c918dcad26e48b31d316b1

Copy link

github-actions bot commented Nov 6, 2023

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/6767725938.
Workflow: Appsmith External Integration Test Workflow.
Commit: 435dc942ce15c92068c918dcad26e48b31d316b1.
PR: 28480.

Copy link

github-actions bot commented Nov 6, 2023

Deploy-Preview-URL: https://ce-28480.dp.appsmith.com

Copy link

github-actions bot commented Nov 6, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6767725938.
Commit: 435dc942ce15c92068c918dcad26e48b31d316b1.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/Binding/TableTextPagination_spec.js

  2. cypress/e2e/Regression/ClientSide/Widgets/Sliders/NumberSlider_spec.ts
  3. cypress/e2e/Sanity/Datasources/MySQLNoiseTest_spec.js
To know the list of identified flaky tests - Refer here

Copy link

github-actions bot commented Nov 6, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6767725938.
Commit: 435dc942ce15c92068c918dcad26e48b31d316b1.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/Binding/TableTextPagination_spec.js

To know the list of identified flaky tests - Refer here

@Aishwarya-U-R Aishwarya-U-R merged commit 7aa1c98 into release Nov 6, 2023
14 of 15 checks passed
@Aishwarya-U-R Aishwarya-U-R deleted the newRelicTest branch November 6, 2023 09:35
Copy link

github-actions bot commented Nov 6, 2023

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6767725938.
Commit: 435dc942ce15c92068c918dcad26e48b31d316b1.
Cypress dashboard url: Click here!
All cypress tests have passed 🎉🎉🎉

vsvamsi1 added a commit that referenced this pull request Nov 6, 2023
- 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
vsvamsi1 added a commit that referenced this pull request Nov 7, 2023
## 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance infra all issue related to the performance infra Performance Pod All things related to Appsmith performance skip-changelog Adding this label to a PR prevents it from being listed in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conditionally load new relic script
5 participants