📦 LogsData represents the logs data that can be stored or transferred.
This is the top-level container for all log data in OpenTelemetry. It groups logs by resource and instrumentation scope for efficient organization and processing.
const logsData: LogsData = { resourceLogs: [ { resource: { attributes: [ { key: "service.name", value: { stringValue: "turtle-miner" } } ], droppedAttributesCount: 0 }, scopeLogs: [ { scope: { name: "mining-operations", version: "1.0.0", attributes: [], droppedAttributesCount: 0 }, logRecords: [ // ... log records ], schemaUrl: "" } ], schemaUrl: "" } ]}; Copy
const logsData: LogsData = { resourceLogs: [ { resource: { attributes: [ { key: "service.name", value: { stringValue: "turtle-miner" } } ], droppedAttributesCount: 0 }, scopeLogs: [ { scope: { name: "mining-operations", version: "1.0.0", attributes: [], droppedAttributesCount: 0 }, logRecords: [ // ... log records ], schemaUrl: "" } ], schemaUrl: "" } ]};
Array of resource logs, each containing logs from a specific resource
📦 LogsData represents the logs data that can be stored or transferred.
This is the top-level container for all log data in OpenTelemetry. It groups logs by resource and instrumentation scope for efficient organization and processing.
Example