From e8f36350d8a567ae3a34b50b3e2dc1e0f6cbfe68 Mon Sep 17 00:00:00 2001 From: ronenk1 Date: Sun, 27 Jul 2025 11:37:55 +0300 Subject: [PATCH] feat: add jobnik attributes for job management services --- src/semanticConventions/infra.json | 67 ++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/src/semanticConventions/infra.json b/src/semanticConventions/infra.json index 7ce12db..82abb3d 100644 --- a/src/semanticConventions/infra.json +++ b/src/semanticConventions/infra.json @@ -39,6 +39,73 @@ "description": "API url of job management service" } } + }, + "jobnik": { + "propertyName": "mapcolonies.infra.jobnik", + "kind": "jobnikAttributes", + "description": "attributes related to job management services", + "deprecated": false, + "subAttributes": { + "job": { + "propertyName": "mapcolonies.infra.jobnik.job", + "deprecated": false, + "description": "Attributes related to a job in job management services", + "kind": "jobAttributes", + "subAttributes": { + "name": { + "propertyName": "mapcolonies.infra.jobnik.job.name", + "deprecated": false, + "description": "The human-readable name of the job" + }, + "priority": { + "propertyName": "mapcolonies.infra.jobnik.job.priority", + "deprecated": false, + "description": "The priority of the job (e.g., HIGH)" + }, + "status": { + "propertyName": "mapcolonies.infra.jobnik.job.status", + "deprecated": false, + "description": "The status being set (e.g., COMPLETED). For update_status spans" + } + } + }, + "stage": { + "propertyName": "mapcolonies.infra.jobnik.stage", + "deprecated": false, + "description": "Attributes related to a stage in job management services", + "kind": "stageAttributes", + "subAttributes": { + "id": { + "propertyName": "mapcolonies.infra.jobnik.stage.id", + "deprecated": false, + "description": "The UUID of the stage." + }, + "status": { + "propertyName": "mapcolonies.infra.jobnik.stage.status", + "deprecated": false, + "description": "The status being set (e.g., COMPLETED). For update_status spans" + } + } + }, + "task": { + "propertyName": "mapcolonies.infra.jobnik.task", + "deprecated": false, + "description": "Attributes related to a task in job management services", + "kind": "taskAttributes", + "subAttributes": { + "status": { + "propertyName": "mapcolonies.infra.jobnik.task.status", + "deprecated": false, + "description": "The status being set (e.g., COMPLETED). For update_status spans" + }, + "attempts": { + "propertyName": "mapcolonies.infra.jobnik.task.attempts", + "deprecated": false, + "description": "The number of times this task has been attempted. This is used to track retries in the job management system." + } + } + } + } } } }