🔬 A collection of Logs produced by a Scope.

Groups logs by instrumentation scope (like a specific library or module). This helps organize logs by their source within a service.

const miningOperationsLogs: ScopeLogs = {
scope: {
name: "mining-operations",
version: "2.1.0",
attributes: [
{ key: "module.type", value: { stringValue: "core" } }
],
droppedAttributesCount: 0
},
logRecords: [
{
timeUnixNano: "1640995200000000000",
observedTimeUnixNano: "1640995200000000000",
severityNumber: SeverityNumber.INFO,
severityText: "INFO",
body: { stringValue: "Started mining operation" },
attributes: [
{ key: "target.depth", value: { intValue: 64 } },
{ key: "expected.duration", value: { stringValue: "30min" } }
],
droppedAttributesCount: 0,
flags: 0,
eventName: "mining.started"
}
],
schemaUrl: ""
};
interface ScopeLogs {
    logRecords: LogRecord[];
    schemaUrl: string;
    scope: InstrumentationScope;
}

Properties

logRecords: LogRecord[]

Array of log records from this scope

schemaUrl: string

URL to the schema defining the structure of this data

The instrumentation scope that produced these logs

MMNEPVFCICPMFPCPTTAAATR