This repository was archived by the owner on Aug 5, 2026. It is now read-only.
log: use shared NewOTelJSONHandler from unstructured-runtime v1.2.0 (KOS-1 Phase 1) - #11
Merged
Merged
Conversation
Cover the declarative status projection (statusDataTemplate over the self/spec/status/helm/api source root, observedGeneration, degrade-only and paused behavior) and the apiRef .api source resolved via the authn-JWT -> snowplow RESTAction chain, with the env-driven config. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…KOS-1 Phase 1) Bumped the unstructured-runtime replace v1.1.2 -> v1.2.0 and replaced the inline JSON handler with logging.NewOTelJSONHandler -- so the cdc and every composition controller emit identical OTel-structured logs (RFC3339Nano timestamp, SeverityText + SeverityNumber, trace_id/span_id when a span is in context). Keeps both "service" and "service.name" during the logs-ingester transition. Folded the stray slog.Warn into the structured logger. Build + vet green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the shared
NewOTelJSONHandler(KOS-1 Phase 1)Part of braghettos/krateo-installer#112. First consumer of the shared handler shipped in
unstructured-runtime v1.2.0(#4).Changes
go.mod:replace … unstructured-runtime → braghettos v1.1.2 → v1.2.0.main.go: deleted the inlineslog.NewJSONHandler; nowlogging.NewOTelJSONHandler(logLevel, os.Stderr, "service.name", "service"). Removes the duplicatedReplaceAttr, fixes the missinglen(groups)==0guard for free, and adds SeverityNumber + the trace bridge.service.name(OTel) andservice(current ingester mapping) — flip the ingester later, then dropservice.slog.Warn(metrics-init) into the structured logger.Build +
go vetgreen. On tag,release-tag.yamlbuilds the cdc image and auto-PRscore-provider-chartcdc.image.tag.🤖 Generated with Claude Code