Skip to content

Commit b1a325c

Browse files
authored
Merge pull request #1940 from SUI-Components/feat/add-datadog-host
feat(packages/sui-logger): add host and port for datadog
2 parents 2e37302 + 7a254f1 commit b1a325c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/sui-logger/src/server/expressMiddleware/DataDogLogger.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ export class DataDogLogger extends Writable {
6969
}
7070
}
7171

72-
export const getDataDogStream = ({globalTags = {}, routes} = {}) => {
72+
export const getDataDogStream = ({host, port, globalTags = {}, routes} = {}) => {
7373
const client = new StatsD({
74+
host,
75+
port,
7476
errorHandler: error => {
7577
console.log('Socket errors caught here: ', error) // eslint-disable-line no-console
7678
},

0 commit comments

Comments
 (0)