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

Add NewRelic support #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ APP_PORT=
MONGODB_URL=
STORM_GLASS_API_URL=
STORM_GLASS_API_TOKEN=
JWT_SECRET_KEY=
JWT_SECRET_KEY=
NEW_RELIC_NO_CONFIG_FILE=true
NEW_RELIC_APP_NAME="Surf Forecast"
NEW_RELIC_LICENSE_KEY="YOUR_KEY_HERE"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"module-alias": "^2.2.2",
"moment": "^2.27.0",
"mongoose": "^5.9.18",
"newrelic": "^7.1.0",
"node-cache": "^5.1.2",
"pino": "^6.3.2",
"swagger-ui-express": "^4.1.4"
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'newrelic';
Copy link
Contributor

@wcalderipe wcalderipe May 30, 2022

Choose a reason for hiding this comment

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

magic

Meia dúzia de linha de código e tua aplicação já tem APM, log indexer, metrics... altas parada. É quase mágica essa New Relic, ein.

Um salve para o @otaviocarvalho que faz as feature acontecer por lá 🙌

Copy link
Owner Author

Choose a reason for hiding this comment

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

Observability eles dizem né, só instalar o NewRelic. E igual Agile, só comprar o Jira.

Copy link

@otaviocarvalho otaviocarvalho Jun 2, 2022

Choose a reason for hiding this comment

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

Valeu a lembrança meus queridos! Esse agent de node é genial mesmo, respeito!

Se não aparecerem as entities, tags ou a busca não funcionar, pode ter certeza que é culpa minha 😅

Enquanto isso, do outro lado da cortina:

Copy link
Owner Author

Choose a reason for hiding this comment

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

@otaviocarvalho to confiando nesses teus commits ai feitos no papoeira comendo pastel 😆

import { SetupServer } from './server';
import logger from './logger';
import config from 'config';
Expand Down
Loading