NewRelicSinkConfig
Auto-generated API reference for NewRelicSinkConfig.
Interface: NewRelicSinkConfig
Defined in: observability/src/new-relic.ts:9
Common batching / retry knobs for the three HTTP log sinks.
#Extends
#Properties
#apiKey
apiKey:
string
Defined in: observability/src/new-relic.ts:11
New Relic license / API key (NRAK-... or license key).
#batchSize?
optionalbatchSize?:number
Defined in: observability/src/http-batch-sink.ts:13
Max events per POST. Default 25. Positive integer.
#Inherited from
#fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: observability/src/http-batch-sink.ts:26
#Call Signature
(
input,init?):Promise<Response>
Parameters
input
RequestInfo | URL
init?
RequestInit
Returns
Promise<Response>
#Call Signature
(
input,init?):Promise<Response>
Parameters
input
string | Request | URL
init?
RequestInit
Returns
Promise<Response>
#Inherited from
#flushIntervalMs?
optionalflushIntervalMs?:number
Defined in: observability/src/http-batch-sink.ts:17
Periodic drain interval (ms). Default 2000. Finite > 0.
#Inherited from
HttpBatchOptions.flushIntervalMs
#maxQueueSize?
optionalmaxQueueSize?:number
Defined in: observability/src/http-batch-sink.ts:15
Hard queue cap; drop oldest when full. Default 1000. Positive integer.
#Inherited from
#maxRetries?
optionalmaxRetries?:number
Defined in: observability/src/http-batch-sink.ts:19
Retries after the initial attempt. Default 3. Integer β₯ 0.
#Inherited from
#onError?
optionalonError?: (error) =>void|Promise<void>
Defined in: observability/src/http-batch-sink.ts:25
Isolated error sink; throws/rejections never escape the observer.
#Parameters
error
unknown
#Returns
void | Promise<void>
#Inherited from
#region?
optionalregion?:"US"|"EU"
Defined in: observability/src/new-relic.ts:13
Region. 'US' (default) β log-api.newrelic.com, 'EU' β log-api.eu.newrelic.com.
#requestTimeoutMs?
optionalrequestTimeoutMs?:number
Defined in: observability/src/http-batch-sink.ts:23
Per-request timeout (ms). Default 10000. Positive integer.
#Inherited from
HttpBatchOptions.requestTimeoutMs
#retryBaseDelayMs?
optionalretryBaseDelayMs?:number
Defined in: observability/src/http-batch-sink.ts:21
Base backoff delay (ms); doubled each attempt, capped at 30s, no jitter. Default 100.
#Inherited from
HttpBatchOptions.retryBaseDelayMs
#service?
optionalservice?:string
Defined in: observability/src/new-relic.ts:15
Service name attached to every event.