🏷️ A collection of ScopeLogs from a Resource.

Groups all logs from a specific resource (like a turtle, computer, or service). This allows for efficient organization and attribution of log data.

const turtleResourceLogs: ResourceLogs = {
resource: {
attributes: [
{ key: "service.name", value: { stringValue: "turtle-42" } },
{ key: "turtle.type", value: { stringValue: "mining" } },
{ key: "location.x", value: { intValue: 100 } },
{ key: "location.y", value: { intValue: 64 } },
{ key: "location.z", value: { intValue: 200 } }
],
droppedAttributesCount: 0
},
scopeLogs: [
// Different scopes for different subsystems
// e.g., mining-operations, navigation, inventory-management
],
schemaUrl: "https://example.com/turtle-schema/v1"
};
interface ResourceLogs {
    resource: Resource;
    schemaUrl: string;
    scopeLogs: ScopeLogs[];
}

Properties

resource: Resource

The resource that produced these logs

schemaUrl: string

URL to the schema defining the structure of this data

scopeLogs: ScopeLogs[]

Array of scope logs from this resource