LokiTransport — low-level HTTP transport to Loki push API
LokiTransport is the low-level HTTP client that pushes log batches to Loki's push API. Use it directly when you need fine-grained control over push behavior.
Timestamps must be nanoseconds since Unix epoch as strings:
// Current time in nanosecondsconst nowNs = String(Date.now() * 1_000_000);// From a Date objectconst dateNs = String(someDate.getTime() * 1_000_000);await transport.push([ { ts: nowNs, line: "Hello" },]);