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

Move to Newrelic for logging and APM #3710

Merged
merged 11 commits into from
Jul 10, 2023
Merged

Move to Newrelic for logging and APM #3710

merged 11 commits into from
Jul 10, 2023

Conversation

dorner
Copy link
Collaborator

@dorner dorner commented Jul 3, 2023

Resolves #3706

Description

Adds Newrelic APM integration and removes Skylight.

Once this is merged, I will add info to the Gitbook related to this.

Type of change

Infrastructure change

How Has This Been Tested?

Deployed to staging.

@@ -16,6 +16,7 @@ class ApplicationController < ActionController::Base

def current_organization
return @current_organization if @current_organization
return nil unless current_role
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks good and correct but is unrelated, yes?

config.lograge.enabled = true
config.lograge.custom_payload do |controller|
{
host: controller.request.host,
user_id: controller.current_user.try(:id)
user_id: controller.current_user.try(:id),
Copy link
Collaborator

Choose a reason for hiding this comment

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

oh, maybe the nil returns were to help these!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, that was why 😁


common: &default_settings
# Required license key associated with your New Relic account.
license_key: 9942120fb257ae099f776017cd6926a760e6NRAL
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be pulled from an ENV? I think the worst case is someone submitting bogus data to NR, and since we have a free account even if our resources get used up it wouldn't be the worst thing ever, so maybe fine for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch. Updated this.

@dorner dorner requested a review from awwaiid July 9, 2023 19:13
Copy link
Collaborator

@awwaiid awwaiid left a comment

Choose a reason for hiding this comment

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

👍 (gotta fix conflict)

@dorner dorner merged commit 6efb65f into main Jul 10, 2023
@dorner dorner deleted the newrelic branch July 10, 2023 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Newrelic
2 participants