🏷️ 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"}; Copy
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"};
The resource that produced these logs
URL to the schema defining the structure of this data
Array of scope logs from this resource
🏷️ 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.
Example