lokiTransport
@abimongo/core / lokiTransport
Variable: lokiTransport
constlokiTransport:RemoteTransporter
Defined in: core/src/utils/logHelpers.ts:76
Create a resilient transporter for Loki logs. This transporter will retry failed log writes with exponential backoff.
Param
The URL of the Loki instance.
Param
Options for the Loki transport.
Example
const lokiTransport = createLokiTransport('http://localhost:3100/loki/api/v1/push', {
job: 'abimongo',
instance: 'abimongo-instance',
});