oh-my-agent-commandcode 0.0.0-stage → 20.38.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -2
- package/filter-test-output.sh +52 -0
- package/mods/oma.ts +347 -0
- package/package.json +30 -4
- package/skills/_shared/conditional/experiment-ledger.md +28 -0
- package/skills/_shared/conditional/exploration-loop.md +22 -0
- package/skills/_shared/conditional/quality-score.md +33 -0
- package/skills/_shared/core/anti-ai-prose.md +191 -0
- package/skills/_shared/core/api-contracts/README.md +28 -0
- package/skills/_shared/core/api-contracts/template.md +90 -0
- package/skills/_shared/core/clarification-protocol.md +23 -0
- package/skills/_shared/core/code-intelligence.md +46 -0
- package/skills/_shared/core/collaboration-policy.md +28 -0
- package/skills/_shared/core/common-checklist.md +28 -0
- package/skills/_shared/core/context-budget.md +22 -0
- package/skills/_shared/core/context-loading.md +34 -0
- package/skills/_shared/core/difficulty-guide.md +26 -0
- package/skills/_shared/core/execution-policy.md +31 -0
- package/skills/_shared/core/lessons-learned.md +33 -0
- package/skills/_shared/core/prompt-structure.md +18 -0
- package/skills/_shared/core/quality-principles.md +11 -0
- package/skills/_shared/core/session-metrics.md +35 -0
- package/skills/_shared/core/skill-routing.md +39 -0
- package/skills/_shared/core/test-approach.md +54 -0
- package/skills/_shared/core/vendor-detection.md +52 -0
- package/skills/_shared/runtime/memory-protocol.md +118 -0
- package/skills/_shared/runtime/result-contract.md +64 -0
- package/skills/_shared/ui-interaction-quality.md +133 -0
- package/skills/oma-academic-writing/SKILL.md +181 -0
- package/skills/oma-academic-writing/resources/abstract-guide.md +51 -0
- package/skills/oma-academic-writing/resources/academic-verb-tiers.md +42 -0
- package/skills/oma-academic-writing/resources/anti-ai-checklist.md +52 -0
- package/skills/oma-academic-writing/resources/hedging-guide.md +132 -0
- package/skills/oma-academic-writing/resources/sentence-structure-reference.md +151 -0
- package/skills/oma-architecture/SKILL.md +203 -0
- package/skills/oma-architecture/resources/api-evolution.md +41 -0
- package/skills/oma-architecture/resources/checklist.md +42 -0
- package/skills/oma-architecture/resources/execution-protocol.md +115 -0
- package/skills/oma-architecture/resources/methodology-selection.md +92 -0
- package/skills/oma-architecture/resources/migration-patterns.md +28 -0
- package/skills/oma-architecture/resources/output-templates.md +111 -0
- package/skills/oma-architecture/resources/stakeholder-synthesis.md +80 -0
- package/skills/oma-backend/SKILL.md +202 -0
- package/skills/oma-backend/resources/checklist.md +45 -0
- package/skills/oma-backend/resources/error-playbook.md +97 -0
- package/skills/oma-backend/resources/execution-protocol.md +39 -0
- package/skills/oma-backend/resources/orm-reference.md +61 -0
- package/skills/oma-backend/variants/node/api-template.ts +315 -0
- package/skills/oma-backend/variants/node/snippets.md +475 -0
- package/skills/oma-backend/variants/node/stack.yaml +21 -0
- package/skills/oma-backend/variants/node/tech-stack.md +33 -0
- package/skills/oma-backend/variants/python/api-template.py +378 -0
- package/skills/oma-backend/variants/python/snippets.md +199 -0
- package/skills/oma-backend/variants/python/stack.yaml +18 -0
- package/skills/oma-backend/variants/python/tech-stack.md +45 -0
- package/skills/oma-backend/variants/rust/api-template.rs +635 -0
- package/skills/oma-backend/variants/rust/snippets.md +471 -0
- package/skills/oma-backend/variants/rust/stack.yaml +20 -0
- package/skills/oma-backend/variants/rust/tech-stack.md +36 -0
- package/skills/oma-backend/variants/stack.schema.json +73 -0
- package/skills/oma-brainstorm/SKILL.md +166 -0
- package/skills/oma-brainstorm/resources/triz-lite.md +117 -0
- package/skills/oma-coordination/SKILL.md +171 -0
- package/skills/oma-db/SKILL.md +201 -0
- package/skills/oma-db/resources/anti-patterns.md +177 -0
- package/skills/oma-db/resources/checklist.md +67 -0
- package/skills/oma-db/resources/document-templates.md +107 -0
- package/skills/oma-db/resources/error-playbook.md +50 -0
- package/skills/oma-db/resources/examples.md +170 -0
- package/skills/oma-db/resources/execution-protocol.md +127 -0
- package/skills/oma-db/resources/iso-controls.md +98 -0
- package/skills/oma-db/resources/migration-playbook.md +93 -0
- package/skills/oma-db/resources/query-tuning.md +57 -0
- package/skills/oma-db/resources/vector-db.md +159 -0
- package/skills/oma-debug/SKILL.md +146 -0
- package/skills/oma-debug/resources/bug-report-template.md +327 -0
- package/skills/oma-debug/resources/checklist.md +31 -0
- package/skills/oma-debug/resources/common-patterns.md +734 -0
- package/skills/oma-debug/resources/debugging-checklist.md +364 -0
- package/skills/oma-debug/resources/error-playbook.md +94 -0
- package/skills/oma-debug/resources/execution-protocol.md +40 -0
- package/skills/oma-design/SKILL.md +135 -0
- package/skills/oma-design/resources/asset-strategy.md +34 -0
- package/skills/oma-design/resources/checklist.md +63 -0
- package/skills/oma-design/resources/data-grid.md +48 -0
- package/skills/oma-design/resources/design-md-spec.md +107 -0
- package/skills/oma-design/resources/design-tokens.md +53 -0
- package/skills/oma-design/resources/error-playbook.md +18 -0
- package/skills/oma-design/resources/execution-protocol.md +95 -0
- package/skills/oma-design/resources/external-design-skills.md +130 -0
- package/skills/oma-design/resources/getdesign-fetcher.md +104 -0
- package/skills/oma-design/resources/product-interface-review.md +59 -0
- package/skills/oma-design/resources/redesign-protocol.md +52 -0
- package/skills/oma-design/resources/stitch-integration.md +244 -0
- package/skills/oma-dev-workflow/SKILL.md +375 -0
- package/skills/oma-dev-workflow/resources/affected-checks.py +58 -0
- package/skills/oma-dev-workflow/resources/api-workflows.md +58 -0
- package/skills/oma-dev-workflow/resources/database-patterns.md +107 -0
- package/skills/oma-dev-workflow/resources/i18n-patterns.md +63 -0
- package/skills/oma-dev-workflow/resources/release-coordination.md +240 -0
- package/skills/oma-dev-workflow/resources/tooling-profiles.md +217 -0
- package/skills/oma-dev-workflow/resources/troubleshooting.md +78 -0
- package/skills/oma-dev-workflow/resources/validation-pipeline.md +246 -0
- package/skills/oma-docs/SKILL.md +77 -0
- package/skills/oma-docs/resources/commands.md +76 -0
- package/skills/oma-explanation/SKILL.md +212 -0
- package/skills/oma-explanation/resources/document-structure.md +115 -0
- package/skills/oma-explanation/resources/draft-format.md +199 -0
- package/skills/oma-explanation/resources/html-contract.md +102 -0
- package/skills/oma-frontend/SKILL.md +227 -0
- package/skills/oma-frontend/resources/angular-rules.md +110 -0
- package/skills/oma-frontend/resources/checklist.md +76 -0
- package/skills/oma-frontend/resources/error-playbook.md +125 -0
- package/skills/oma-frontend/resources/execution-protocol.md +46 -0
- package/skills/oma-frontend/resources/snippets.md +354 -0
- package/skills/oma-frontend/resources/specialized-visual-implementation.md +193 -0
- package/skills/oma-frontend/resources/tailwind-rules.md +83 -0
- package/skills/oma-frontend/resources/tech-stack.md +156 -0
- package/skills/oma-hwp/SKILL.md +166 -0
- package/skills/oma-hwp/config/hwp-config.yaml +35 -0
- package/skills/oma-hwp/resources/balanced-tables.ts +39 -0
- package/skills/oma-hwp/resources/execution-protocol.md +145 -0
- package/skills/oma-hwp/resources/flatten-tables.ts +101 -0
- package/skills/oma-hwp/resources/package.json +13 -0
- package/skills/oma-hwp/resources/troubleshooting.md +70 -0
- package/skills/oma-hwp/resources/tsconfig.json +10 -0
- package/skills/oma-hwp/resources/turndown-plugin-gfm.d.ts +9 -0
- package/skills/oma-image/SKILL.md +142 -0
- package/skills/oma-image/config/image-config.yaml +70 -0
- package/skills/oma-image/resources/checklist.md +18 -0
- package/skills/oma-image/resources/execution-protocol.md +117 -0
- package/skills/oma-image/resources/invocation.md +105 -0
- package/skills/oma-image/resources/prompt-tips.md +71 -0
- package/skills/oma-image/resources/vendor-matrix.md +90 -0
- package/skills/oma-market/SKILL.md +142 -0
- package/skills/oma-market/resources/checklist.md +12 -0
- package/skills/oma-market/resources/error-playbook.md +12 -0
- package/skills/oma-market/resources/execution-protocol.md +60 -0
- package/skills/oma-market/resources/frameworks/pestel.md +101 -0
- package/skills/oma-market/resources/frameworks/porters-5f.md +90 -0
- package/skills/oma-market/resources/frameworks/swot.md +61 -0
- package/skills/oma-market/resources/intent-rules.md +35 -0
- package/skills/oma-market/resources/output-laws.md +53 -0
- package/skills/oma-mobile/SKILL.md +168 -0
- package/skills/oma-mobile/resources/checklist.md +77 -0
- package/skills/oma-mobile/resources/error-playbook.md +198 -0
- package/skills/oma-mobile/resources/execution-protocol.md +47 -0
- package/skills/oma-mobile/resources/screen-template.dart +331 -0
- package/skills/oma-mobile/resources/screen-template.swift +239 -0
- package/skills/oma-mobile/resources/screen-template.tsx +179 -0
- package/skills/oma-mobile/resources/tech-stack.md +69 -0
- package/skills/oma-mobile/variants/README.md +45 -0
- package/skills/oma-mobile/variants/flutter/api-template.dart +461 -0
- package/skills/oma-mobile/variants/flutter/snippets.md +1353 -0
- package/skills/oma-mobile/variants/flutter/stack.yaml +21 -0
- package/skills/oma-mobile/variants/flutter/tech-stack.md +201 -0
- package/skills/oma-mobile/variants/kotlin-android/api-template.kt +182 -0
- package/skills/oma-mobile/variants/kotlin-android/snippets.md +871 -0
- package/skills/oma-mobile/variants/kotlin-android/stack.yaml +32 -0
- package/skills/oma-mobile/variants/kotlin-android/tech-stack.md +159 -0
- package/skills/oma-mobile/variants/react-native/api-template.ts +531 -0
- package/skills/oma-mobile/variants/react-native/snippets.md +1014 -0
- package/skills/oma-mobile/variants/react-native/stack.yaml +22 -0
- package/skills/oma-mobile/variants/react-native/tech-stack.md +192 -0
- package/skills/oma-mobile/variants/stack.schema.json +68 -0
- package/skills/oma-mobile/variants/swift-ios/api-template.swift +165 -0
- package/skills/oma-mobile/variants/swift-ios/snippets.md +1028 -0
- package/skills/oma-mobile/variants/swift-ios/stack.yaml +25 -0
- package/skills/oma-mobile/variants/swift-ios/tech-stack.md +174 -0
- package/skills/oma-observability/SKILL.md +225 -0
- package/skills/oma-observability/resources/anti-patterns.md +555 -0
- package/skills/oma-observability/resources/boundaries/cross-application.md +348 -0
- package/skills/oma-observability/resources/boundaries/multi-tenant.md +290 -0
- package/skills/oma-observability/resources/boundaries/release.md +372 -0
- package/skills/oma-observability/resources/boundaries/slo.md +225 -0
- package/skills/oma-observability/resources/checklist.md +123 -0
- package/skills/oma-observability/resources/examples.md +448 -0
- package/skills/oma-observability/resources/execution-protocol.md +166 -0
- package/skills/oma-observability/resources/incident-forensics.md +348 -0
- package/skills/oma-observability/resources/intent-rules.md +307 -0
- package/skills/oma-observability/resources/layers/L3-network.md +281 -0
- package/skills/oma-observability/resources/layers/L4-transport.md +299 -0
- package/skills/oma-observability/resources/layers/L7-application/crash-analytics.md +359 -0
- package/skills/oma-observability/resources/layers/L7-application/mobile-rum.md +278 -0
- package/skills/oma-observability/resources/layers/L7-application/waf.md +246 -0
- package/skills/oma-observability/resources/layers/L7-application/web-rum.md +350 -0
- package/skills/oma-observability/resources/layers/mesh.md +368 -0
- package/skills/oma-observability/resources/matrix.md +177 -0
- package/skills/oma-observability/resources/meta-observability.md +605 -0
- package/skills/oma-observability/resources/observability-as-code.md +666 -0
- package/skills/oma-observability/resources/signals/audit.md +310 -0
- package/skills/oma-observability/resources/signals/cost.md +303 -0
- package/skills/oma-observability/resources/signals/logs.md +263 -0
- package/skills/oma-observability/resources/signals/metrics.md +478 -0
- package/skills/oma-observability/resources/signals/privacy.md +351 -0
- package/skills/oma-observability/resources/signals/profiles.md +245 -0
- package/skills/oma-observability/resources/signals/traces.md +360 -0
- package/skills/oma-observability/resources/standards.md +214 -0
- package/skills/oma-observability/resources/transport/collector-topology.md +308 -0
- package/skills/oma-observability/resources/transport/otlp-grpc-vs-http.md +256 -0
- package/skills/oma-observability/resources/transport/sampling-recipes.md +297 -0
- package/skills/oma-observability/resources/transport/udp-statsd-mtu.md +167 -0
- package/skills/oma-observability/resources/vendor-categories.md +352 -0
- package/skills/oma-orchestration/SKILL.md +302 -0
- package/skills/oma-orchestration/config/cli-config.yaml +92 -0
- package/skills/oma-orchestration/resources/memory-schema.md +232 -0
- package/skills/oma-orchestration/resources/subagent-prompt-template.md +30 -0
- package/skills/oma-orchestration/scripts/parallel-run.sh +6 -0
- package/skills/oma-orchestration/scripts/spawn-agent.sh +5 -0
- package/skills/oma-orchestration/scripts/verify.sh +20 -0
- package/skills/oma-orchestration/templates/backend-task.md +19 -0
- package/skills/oma-orchestration/templates/debug-task.md +16 -0
- package/skills/oma-orchestration/templates/frontend-task.md +18 -0
- package/skills/oma-orchestration/templates/mobile-task.md +18 -0
- package/skills/oma-orchestration/templates/qa-task.md +16 -0
- package/skills/oma-orchestration/templates/tasks-example.yaml +15 -0
- package/skills/oma-pdf/SKILL.md +162 -0
- package/skills/oma-pdf/config/pdf-config.yaml +27 -0
- package/skills/oma-pdf/resources/execution-protocol.md +127 -0
- package/skills/oma-pm/SKILL.md +157 -0
- package/skills/oma-pm/resources/error-playbook.md +75 -0
- package/skills/oma-pm/resources/examples.md +439 -0
- package/skills/oma-pm/resources/execution-protocol.md +62 -0
- package/skills/oma-pm/resources/iso-planning.md +110 -0
- package/skills/oma-pm/resources/plan-phase-protocol.md +66 -0
- package/skills/oma-pm/resources/task-template.json +86 -0
- package/skills/oma-qa/SKILL.md +141 -0
- package/skills/oma-qa/resources/checklist.md +339 -0
- package/skills/oma-qa/resources/error-playbook.md +98 -0
- package/skills/oma-qa/resources/execution-protocol.md +169 -0
- package/skills/oma-qa/resources/iso-quality.md +82 -0
- package/skills/oma-qa/resources/verify-ship-protocol.md +116 -0
- package/skills/oma-recap/SKILL.md +245 -0
- package/skills/oma-recap/resources/output-formats.md +83 -0
- package/skills/oma-refactor/SKILL.md +184 -0
- package/skills/oma-refactor/resources/definition.md +108 -0
- package/skills/oma-refactor/resources/governance.md +33 -0
- package/skills/oma-refactor/resources/hotspots.py +44 -0
- package/skills/oma-refactor/resources/measurement.md +93 -0
- package/skills/oma-scholar/SKILL.md +276 -0
- package/skills/oma-scholar/config/scholar-config.yaml +79 -0
- package/skills/oma-scholar/resources/api-endpoints.md +174 -0
- package/skills/oma-scholar/resources/checklist.md +92 -0
- package/skills/oma-scholar/resources/execution-protocol.md +224 -0
- package/skills/oma-scholar/resources/fallback-providers.md +143 -0
- package/skills/oma-scholar/resources/setup-openalex.md +85 -0
- package/skills/oma-scholar/resources/sidecar-spec.md +341 -0
- package/skills/oma-scholar/resources/upstream-spec-cache.md +972 -0
- package/skills/oma-scm/SKILL.md +103 -0
- package/skills/oma-scm/resources/cm-operations.md +56 -0
- package/skills/oma-scm/resources/codeowners-playbook.md +45 -0
- package/skills/oma-scm/resources/conventional-commits.md +108 -0
- package/skills/oma-scm/resources/merge-risk.md +76 -0
- package/skills/oma-scm/resources/onboarding-risk-signals.md +71 -0
- package/skills/oma-search/SKILL.md +125 -0
- package/skills/oma-search/resources/checklist.md +36 -0
- package/skills/oma-search/resources/error-playbook.md +66 -0
- package/skills/oma-search/resources/examples.md +80 -0
- package/skills/oma-search/resources/execution-protocol.md +86 -0
- package/skills/oma-search/resources/intent-rules.md +47 -0
- package/skills/oma-search/resources/trust-registry.md +53 -0
- package/skills/oma-security/SKILL.md +172 -0
- package/skills/oma-security/resources/artex.md +108 -0
- package/skills/oma-security/resources/ci.md +134 -0
- package/skills/oma-security/resources/cisco-source.md +108 -0
- package/skills/oma-security/resources/deepsec-config.md +45 -0
- package/skills/oma-security/resources/deepsec-matchers.md +35 -0
- package/skills/oma-security/resources/deepsec-scanning.md +45 -0
- package/skills/oma-security/resources/deepsec-setup.md +41 -0
- package/skills/oma-security/resources/findings-contract.md +408 -0
- package/skills/oma-security/resources/mcp-scanning.md +122 -0
- package/skills/oma-security/resources/skill-scanning.md +106 -0
- package/skills/oma-security/resources/validation.md +71 -0
- package/skills/oma-skill-creation/SKILL.md +84 -0
- package/skills/oma-skill-creation/resources/prompt-evaluation.md +36 -0
- package/skills/oma-skill-creation/resources/ssl-lite-template.md +108 -0
- package/skills/oma-skill-creation/resources/validation-checklist.md +101 -0
- package/skills/oma-slide/SKILL.md +277 -0
- package/skills/oma-slide/resources/animation-patterns.md +245 -0
- package/skills/oma-slide/resources/assets/deck-stage.js +514 -0
- package/skills/oma-slide/resources/assets/viewport-base.css +257 -0
- package/skills/oma-slide/resources/canva-integration.md +203 -0
- package/skills/oma-slide/resources/checklist.md +46 -0
- package/skills/oma-slide/resources/design-doctrine.md +260 -0
- package/skills/oma-slide/resources/fixed-stage.md +232 -0
- package/skills/oma-slide/resources/generation-protocol.md +393 -0
- package/skills/oma-slide/resources/native-pptx.md +84 -0
- package/skills/oma-slide/resources/selection-index.json +461 -0
- package/skills/oma-slide/resources/style-presets.LICENSE +10 -0
- package/skills/oma-slide/resources/style-presets.md +520 -0
- package/skills/oma-tf-infra/SKILL.md +201 -0
- package/skills/oma-tf-infra/resources/checklist.md +53 -0
- package/skills/oma-tf-infra/resources/cost-optimization.md +574 -0
- package/skills/oma-tf-infra/resources/error-playbook.md +68 -0
- package/skills/oma-tf-infra/resources/examples.md +38 -0
- package/skills/oma-tf-infra/resources/execution-protocol.md +129 -0
- package/skills/oma-tf-infra/resources/iso-42001-infra.md +229 -0
- package/skills/oma-tf-infra/resources/multi-cloud-examples.md +241 -0
- package/skills/oma-tf-infra/resources/policy-testing-examples.md +332 -0
- package/skills/oma-translation/SKILL.md +229 -0
- package/skills/oma-translation/resources/anti-ai-patterns.md +104 -0
- package/skills/oma-translation/resources/lang/_template.md +73 -0
- package/skills/oma-translation/resources/lang/en.md +123 -0
- package/skills/oma-translation/resources/lang/ja.md +274 -0
- package/skills/oma-translation/resources/lang/ko.md +228 -0
- package/skills/oma-translation/resources/lang/zh.md +285 -0
- package/skills/oma-translation/resources/style-skills.md +104 -0
- package/skills/oma-translation/resources/translation-rubric.md +126 -0
- package/skills/oma-video/SKILL.md +229 -0
- package/skills/oma-video/config/video-config.yaml +60 -0
- package/skills/oma-video/resources/checklist.md +26 -0
- package/skills/oma-video/resources/execution-protocol.md +122 -0
- package/skills/oma-video/resources/existing-media.md +185 -0
- package/skills/oma-video/resources/hyperframes-authoring/README.md +44 -0
- package/skills/oma-video/resources/hyperframes-authoring/demo.md +31 -0
- package/skills/oma-video/resources/hyperframes-authoring/explainer.md +10 -0
- package/skills/oma-video/resources/hyperframes-authoring/shorts.md +10 -0
- package/skills/oma-video/resources/motion-principles.md +81 -0
- package/skills/oma-video/resources/mpt/driver.py +301 -0
- package/skills/oma-video/resources/prompt-tips.md +75 -0
- package/skills/oma-video/resources/script-schema.md +81 -0
- package/skills/oma-video/resources/sound-design.md +127 -0
- package/skills/oma-video/resources/strudel/package.json +11 -0
- package/skills/oma-video/resources/strudel/page.html +87 -0
- package/skills/oma-video/resources/strudel/render.mjs +295 -0
- package/skills/oma-video/resources/vendor-matrix.md +124 -0
- package/skills/oma-voice/SKILL.md +249 -0
- package/skills/oma-voice/config/voice-config.yaml +30 -0
- package/skills/oma-voice/resources/audio-processing.md +119 -0
- package/skills/oma-voice/resources/checklist.md +47 -0
- package/skills/oma-voice/resources/execution-protocol.md +215 -0
- package/skills/oma-voice/resources/prompt-tips.md +43 -0
- package/skills/oma-voice/resources/voice-matrix.md +51 -0
- package/skills/oma-voice/resources/voicestudio.md +87 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
---
|
|
2
|
+
otel_spec: "1.x (stable API/SDK)"
|
|
3
|
+
otel_semconv: "1.43.0 (2026-07)"
|
|
4
|
+
notes:
|
|
5
|
+
- "Fluent Bit: v3.x (CNCF Graduated); OTel Collector: v0.100+"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Logs Signal Reference
|
|
9
|
+
|
|
10
|
+
## 1. Scope
|
|
11
|
+
|
|
12
|
+
Logs are the "L" in MELT+P. Covers: OTel LogRecord data model, structured logging, events-as-logs, systemd journal, and pipeline options.
|
|
13
|
+
|
|
14
|
+
**Normative base:** `../standards.md`. Fluentd remains CNCF Graduated. Select Fluentd, Fluent Bit, or OTel Collector from workload, plugin, and operational requirements.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 2. OTel LogRecord Data Model
|
|
19
|
+
|
|
20
|
+
Source: <https://opentelemetry.io/docs/specs/otel/logs/data-model/>
|
|
21
|
+
|
|
22
|
+
| Field | Type | Description |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| `Timestamp` | uint64 (ns) | When the event occurred; 0 if unknown |
|
|
25
|
+
| `ObservedTimestamp` | uint64 (ns) | When the collector observed the record; always set |
|
|
26
|
+
| `SeverityText` | string | e.g. `"ERROR"`; original string from source |
|
|
27
|
+
| `SeverityNumber` | int (1–24) | Normalized OTel severity |
|
|
28
|
+
| `Body` | any | String, map, or primitive |
|
|
29
|
+
| `Attributes` | map[string]any | Semconv-stable keys preferred |
|
|
30
|
+
| `TraceId` | 16-byte hex | W3C trace ID; empty if not in a trace |
|
|
31
|
+
| `SpanId` | 8-byte hex | W3C span ID; empty if not in a span |
|
|
32
|
+
| `Resource` | map[string]any | `service.name`, `host.name`, etc. |
|
|
33
|
+
|
|
34
|
+
**Severity scale:** TRACE 1–4 · DEBUG 5–8 · INFO 9–12 · WARN 13–16 · ERROR 17–20 · FATAL 21–24
|
|
35
|
+
|
|
36
|
+
**Export:** OTLP gRPC `:4317` or HTTP `:4318/v1/logs`. Configure the SDK's `LogRecordExporter` to point at the OTel Collector.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 3. Structured Logging
|
|
41
|
+
|
|
42
|
+
JSON over text: queryable, typed, machine-readable. No grok patterns.
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"timestamp": "2026-04-21T09:15:32.847Z",
|
|
47
|
+
"level": "ERROR",
|
|
48
|
+
"message": "payment gateway timeout after 3 retries",
|
|
49
|
+
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
50
|
+
"span_id": "00f067aa0ba902b7",
|
|
51
|
+
"service.name": "checkout-api",
|
|
52
|
+
"service.version": "1.4.2",
|
|
53
|
+
"deployment.environment": "production",
|
|
54
|
+
"error.type": "GatewayTimeoutError",
|
|
55
|
+
"retry.count": 3
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Required fields on every log record:**
|
|
60
|
+
|
|
61
|
+
| Field | Format | Why |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| `timestamp` | ISO 8601 UTC (`Z`) | Clock-ordered queries; cross-ref `../standards.md §Clock Discipline` |
|
|
64
|
+
| `level` | OTel SeverityText | Filtering and sampling |
|
|
65
|
+
| `message` | human-readable string | On-call readability |
|
|
66
|
+
| `trace_id` + `span_id` | 32/16-char hex | Join with traces; critical for incident forensics |
|
|
67
|
+
| `service.name`, `service.version` | semconv stable | Release comparison |
|
|
68
|
+
| `deployment.environment` | `production` / `staging` | Noise isolation |
|
|
69
|
+
|
|
70
|
+
**Metric correlation:** use `service.name`, `cloud.region`, `k8s.namespace.name` as shared labels across logs and metrics. Cross-ref `../incident-forensics.md §MRA` for the full mandatory resource attribute list.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 4. Events as LogRecords
|
|
75
|
+
|
|
76
|
+
OTel spec v1+ folded events into LogRecord: set `event.name` + `event.*` attributes. Source: <https://opentelemetry.io/docs/specs/otel/logs/event-api/>
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"timestamp": "2026-04-21T09:15:33.001Z",
|
|
81
|
+
"level": "INFO",
|
|
82
|
+
"message": "order placed",
|
|
83
|
+
"event.name": "order.placed",
|
|
84
|
+
"order.id": "ord_8f3k2",
|
|
85
|
+
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
86
|
+
"span_id": "00f067aa0ba902b7",
|
|
87
|
+
"service.name": "order-service",
|
|
88
|
+
"deployment.environment": "production"
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Use cases: `feature_flag.evaluated`, `deployment.completed`, `order.placed`, `user.signup`.
|
|
93
|
+
|
|
94
|
+
**Distinction from metrics:** events are discrete occurrences; metrics are aggregated rates.
|
|
95
|
+
**Distinction from logs:** events have a declared `event.name` and attribute contract; logs are often free-form.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 5. Systemd Journal Integration
|
|
100
|
+
|
|
101
|
+
On most Linux cloud VMs, systemd-journald is the primary log sink. Map via `journaldreceiver` (stable).
|
|
102
|
+
|
|
103
|
+
```yaml
|
|
104
|
+
# otelcol-config.yaml
|
|
105
|
+
receivers:
|
|
106
|
+
journald:
|
|
107
|
+
directory: /var/log/journal
|
|
108
|
+
units: [kubelet.service, containerd.service]
|
|
109
|
+
priority: info
|
|
110
|
+
processors:
|
|
111
|
+
resource:
|
|
112
|
+
attributes:
|
|
113
|
+
- { key: host.name, from_attribute: _HOSTNAME, action: upsert }
|
|
114
|
+
- { key: service.name, from_attribute: _SYSTEMD_UNIT, action: upsert }
|
|
115
|
+
exporters:
|
|
116
|
+
otlp:
|
|
117
|
+
endpoint: "otel-gateway.observability.svc:4317"
|
|
118
|
+
service:
|
|
119
|
+
pipelines:
|
|
120
|
+
logs:
|
|
121
|
+
receivers: [journald]
|
|
122
|
+
processors: [resource]
|
|
123
|
+
exporters: [otlp]
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Source: <https://github.com/open-telemetry/opentelemetry-collector-contrib/receiver/journaldreceiver>
|
|
127
|
+
|
|
128
|
+
**journald field mapping:** `MESSAGE` → `Body` · `PRIORITY` → `SeverityNumber` · `_HOSTNAME` → `Resource["host.name"]` · `_SYSTEMD_UNIT` → `Resource["service.name"]` · `_PID` → `Attributes["process.pid"]`
|
|
129
|
+
|
|
130
|
+
**Kubernetes log sources:**
|
|
131
|
+
- kubelet → container stdout/stderr → runtime log files → `filelogreceiver` (`/var/log/pods/*/*/*.log`)
|
|
132
|
+
- Kubernetes events → `k8seventsreceiver` (OTel Collector contrib)
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 6. Collector and Agent Options
|
|
137
|
+
|
|
138
|
+
Cross-ref `../vendor-categories.md §Log Pipeline Collection` (category h).
|
|
139
|
+
|
|
140
|
+
| Tool | Runtime | RAM | CNCF | Notes |
|
|
141
|
+
|---|---|---|---|---|
|
|
142
|
+
| **Fluent Bit** | C/Rust | 5–15 MB | Graduated | Edge DaemonSet; native OTLP output |
|
|
143
|
+
| **OTel Collector** | Go | 30–100 MB | Incubating | Unified MELT; gateway aggregation |
|
|
144
|
+
| **Vector** | Rust | 20–60 MB | Datadog OSS | Log + metric pipeline with transforms |
|
|
145
|
+
| **Cribl Stream** | Proprietary | 100+ MB | Commercial | Advanced routing |
|
|
146
|
+
| Fluentd | Ruby | Workload-dependent | CNCF Graduated | Validate plugin and resource requirements |
|
|
147
|
+
|
|
148
|
+
**2026 best practice:** Fluent Bit DaemonSet (edge) → OTLP → OTel Collector gateway (enrichment, PII redaction, routing) → backends.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 7. Trace ID Injection Rules
|
|
153
|
+
|
|
154
|
+
**EVERY log line from an instrumented service MUST carry `trace_id` + `span_id`.**
|
|
155
|
+
|
|
156
|
+
Without them, log-trace join fails during incident forensics, adding 15–30 min to MTTR.
|
|
157
|
+
|
|
158
|
+
**Injection mechanisms:**
|
|
159
|
+
|
|
160
|
+
| Language | Library | Method |
|
|
161
|
+
|---|---|---|
|
|
162
|
+
| Python | `structlog` | Context processor extracting OTel span context |
|
|
163
|
+
| Java | Logback / Log4j2 | `OpenTelemetryAppender` MDC integration |
|
|
164
|
+
| Node.js | `pino` | `pino-opentelemetry-transport` |
|
|
165
|
+
| Go | `zap` / `slog` | Manual `trace.SpanFromContext` extraction |
|
|
166
|
+
|
|
167
|
+
**Verification:** assert in integration tests that the `trace_id` in a log record matches bytes 1–16 of the inbound `traceparent` header. Cross-ref `../standards.md §W3C Trace Context`.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 8. Log Severity and Sampling
|
|
172
|
+
|
|
173
|
+
| Severity | Production policy |
|
|
174
|
+
|---|---|
|
|
175
|
+
| TRACE / DEBUG | 1% sample |
|
|
176
|
+
| INFO | 10–20% for high-volume services |
|
|
177
|
+
| WARN / ERROR / FATAL | 100% retained |
|
|
178
|
+
|
|
179
|
+
Apply sampling at the collection tier (Fluent Bit throttle filter or OTel Collector `probabilistic_sampler`), not at the application tier.
|
|
180
|
+
|
|
181
|
+
**Trace-correlated log retention:** the Collector `tail_sampling` processor accepts traces, not logs. Keeping logs based on a later trace outcome requires a separately implemented stateful correlation/buffering stage or backend policy keyed by `trace_id`. Until that exists, retain WARN/ERROR/FATAL through a log-specific severity policy and sample lower severities independently; the trace recipe alone cannot join the signals.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## 9. Log Retention and Compliance
|
|
186
|
+
|
|
187
|
+
| Category | Retention | Storage |
|
|
188
|
+
|---|---|---|
|
|
189
|
+
| Operational (INFO/DEBUG) | 7–30 days | Hot |
|
|
190
|
+
| WARN / ERROR | 90 days | Hot or warm |
|
|
191
|
+
| Audit logs | Approved schedule for the record class | Tamper protection; WORM when the selected obligation requires it |
|
|
192
|
+
|
|
193
|
+
**PII redaction** MUST occur at ingestion (Fluent Bit or OTel Collector `redaction` processor), not at storage time. Cross-ref `privacy.md §PII redaction pipeline`.
|
|
194
|
+
|
|
195
|
+
Cross-ref `../meta-observability.md §Retention Matrix` for unified policy across all signals.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## 10. OS-Level Log Sources
|
|
200
|
+
|
|
201
|
+
| Source | Collection | Notes |
|
|
202
|
+
|---|---|---|
|
|
203
|
+
| systemd-journald | `journaldreceiver` | Primary on Linux; all systemd units |
|
|
204
|
+
| syslog (legacy) | `syslogreceiver` | Facilities: kern, daemon, auth |
|
|
205
|
+
| kernel dmesg | journald (forwarded automatically) | OOM kills, NIC errors |
|
|
206
|
+
| Linux auditd | `filelogreceiver` on `/var/log/audit/audit.log` | Cross-ref `audit.md §auditd` |
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## 11. Backends
|
|
211
|
+
|
|
212
|
+
Cross-ref `../vendor-categories.md` for category (e) SIEM / Enterprise Logs and (a) OSS Full-Stack.
|
|
213
|
+
|
|
214
|
+
| Backend | Query model | Notes |
|
|
215
|
+
|---|---|---|
|
|
216
|
+
| **Loki** (Grafana Labs) | LogQL; label-indexed | Chunks in object storage; cloud-native OSS |
|
|
217
|
+
| **Elasticsearch** | Lucene / EQL | Full-text search; large existing footprints |
|
|
218
|
+
| **OpenSearch** (AWS fork) | Lucene / SQL | No Elastic licensing |
|
|
219
|
+
| **ClickHouse** | SQL; columnar | Rising default for high-volume structured log analytics; used by SigNoz |
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## 12. Matrix Coverage: Logs Column
|
|
224
|
+
|
|
225
|
+
Cells from `../matrix.md` owned by this file:
|
|
226
|
+
|
|
227
|
+
| Layer | Boundary | Status | Artifact |
|
|
228
|
+
|---|---|---|---|
|
|
229
|
+
| L3-network | multi-tenant | PASS | VPC flow log stream tagged by tenant CIDR |
|
|
230
|
+
| L4-transport | multi-tenant | PASS | TCP connection events per tenant socket namespace |
|
|
231
|
+
| mesh | multi-tenant | PASS | Envoy access logs with baggage-derived tenant tag |
|
|
232
|
+
| mesh | cross-application | PASS | Envoy access logs; `trace_id` correlation |
|
|
233
|
+
| mesh | slo | PARTIAL | Burn-rate event source; metric-based SLI preferred |
|
|
234
|
+
| mesh | release | PASS | Deployment event with `service.version` tag |
|
|
235
|
+
| L7-application | multi-tenant | PASS | `tenant.id` on every record; OTel Collector `routing_connector` |
|
|
236
|
+
| L7-application | cross-application | PASS | `trace_id` + `span_id` enables log-trace join across services |
|
|
237
|
+
| L7-application | slo | PARTIAL | Log-based SLI valid fallback; metric-based preferred |
|
|
238
|
+
| L7-application | release | PASS | Deployment SHA, version, rollout strategy as structured event |
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 13. Anti-patterns
|
|
243
|
+
|
|
244
|
+
Append candidates for `../anti-patterns.md §Logs`:
|
|
245
|
+
|
|
246
|
+
| ID | Anti-pattern | Fix |
|
|
247
|
+
|---|---|---|
|
|
248
|
+
| A-L1 | Free-form log text without JSON | Adopt structured JSON; no grok |
|
|
249
|
+
| A-L2 | `trace_id` missing in logs | Inject via SDK hook (Section 7); enforce in CI |
|
|
250
|
+
| A-L3 | `user.email` in log body | PII violation; redact at collection tier; cross-ref `privacy.md` |
|
|
251
|
+
| A-L4 | Unique message IDs as log labels | Cardinality explosion in Loki; use attributes, not labels |
|
|
252
|
+
| A-L5 | Log agent selected without checking plugins, routes, or resource use | Compare supported requirements and measured overhead; Fluentd is not deprecated by the CNCF migration guide |
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## 14. References
|
|
257
|
+
|
|
258
|
+
1. OTel log data model: <https://opentelemetry.io/docs/specs/otel/logs/data-model/>
|
|
259
|
+
2. OTel event API: <https://opentelemetry.io/docs/specs/otel/logs/event-api/>
|
|
260
|
+
3. journaldreceiver: <https://github.com/open-telemetry/opentelemetry-collector-contrib/receiver/journaldreceiver>
|
|
261
|
+
4. CNCF Fluentd migration guide: <https://www.cncf.io/blog/2025/10/01/fluentd-to-fluent-bit-a-migration-guide/>
|
|
262
|
+
5. Fluent Bit docs: <https://docs.fluentbit.io>
|
|
263
|
+
6. `../standards.md` · `../matrix.md` · `../incident-forensics.md §MRA` · `../meta-observability.md §Retention Matrix` · `../transport/sampling-recipes.md` · `../vendor-categories.md`
|