-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Add support for logging via DataDog #88
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
8b2b418
to
7619ce9
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7619ce9
to
4b3cfca
Compare
This comment has been minimized.
This comment has been minimized.
4b3cfca
to
4be53ad
Compare
This comment has been minimized.
This comment has been minimized.
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.
Please fix typos.
Also, from ticket, is this requirement being fulfilled?
A log should have clear details on environment (staging, production, etc..)
If yes - Can post example of a screenshot where it has the environment?
|
||
import WinstonLogger from './winston-logger'; | ||
|
||
export default class DatedogLogger extends WinstonLogger { |
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.
typo - DatedogLogger
@@ -2,6 +2,7 @@ import ConfigService from '../../config/config-service'; | |||
import { UnknownTransportError } from '../types'; | |||
|
|||
import ConsoleLogger from './console-logger'; | |||
import DatedogLogger from './datadog-logger'; |
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.
typo - DatedogLogger
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cfd3ec7
to
746b1fc
Compare
Deployment (boilerplate-mern) is available at - https://912c72aad493c7a.preview.platform.jalantechnologies.com |
Minimum allowed line rate is |
@bbbneo333 fixed the typo. The environment can be determined by the service name for eg: boilerplate-mern-preview or boilerplate-mern-production. ![]() |
@@ -15,4 +15,5 @@ export enum LoggerTransport { | |||
Rollbar = 'rollbar', | |||
Grafana = 'grafana', | |||
Papertrail = 'papertrail', | |||
Datadog = 'datadog', |
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.
Should we remove support for all other logger types such as Rollbar, Grafana, Papertrail etc to reflect one opiniated approach on monitoring / logging from boilerplate standpoint or would that be part of separate PR?
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.
yes, @jjalan i'll remove it in a separate PR. I just wanted to test the end-to-end flow from logging to alert in the MS team via datadog in preview env before removing other options.
LGTM! |
Description
This PR Adds the Datadog logger. I'll be removing all other logger once the Datadog integration is tested successfully on preview and on production.
#87