MCPcopy Create free account
hub / github.com/Noumena-Network/code / getDatadogConfig

Function getDatadogConfig

src/services/analytics/datadog.ts:104–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102let datadogInitialized: boolean | null = null
103
104function getDatadogConfig(): DatadogConfig | null {
105 const endpoint = process.env.NCODE_DATADOG_LOGS_ENDPOINT?.trim()
106 const token = process.env.NCODE_DATADOG_CLIENT_TOKEN?.trim()
107
108 if (!endpoint || !token) {
109 return null
110 }
111
112 return { endpoint, token }
113}
114
115async function flushLogs(): Promise<void> {
116 if (logBatch.length === 0) return

Callers 2

flushLogsFunction · 0.85
datadog.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected