Simple OTLP HTTP Log Exporter for direct log export
This is a simplified exporter that doesn't require the full SDK infrastructure. Use this when you need to send logs directly without LoggerProvider.
const exporter = new SimpleOTLPHttpLogExporter({ cloudHostname: 'cloud.livekit.io', resourceAttributes: { room_id: 'xxx', job_id: 'yyy' }, scopeName: 'chat_history',});await exporter.export([ { body: 'Hello', timestampMs: Date.now(), attributes: { test: true } },]); Copy
const exporter = new SimpleOTLPHttpLogExporter({ cloudHostname: 'cloud.livekit.io', resourceAttributes: { room_id: 'xxx', job_id: 'yyy' }, scopeName: 'chat_history',});await exporter.export([ { body: 'Hello', timestampMs: Date.now(), attributes: { test: true } },]);
Export simple log records
Simple OTLP HTTP Log Exporter for direct log export
This is a simplified exporter that doesn't require the full SDK infrastructure. Use this when you need to send logs directly without LoggerProvider.
Example