Skip to content

feat: migrate to official OpenSlo go-sdk and slog logging - #8

Merged
thisisibrahimd merged 2 commits into
mainfrom
change-openslo-sdk
Sep 3, 2026
Merged

feat: migrate to official OpenSlo go-sdk and slog logging#8
thisisibrahimd merged 2 commits into
mainfrom
change-openslo-sdk

Conversation

@thisisibrahimd

Copy link
Copy Markdown
Owner

Replace github.com/thisisibrahimd/openslo with official github.com/OpenSLO/go-sdk v0.9.2.

Changes

  • SDK: github.com/thisisibrahimd/openslogithub.com/OpenSLO/go-sdk v0.9.2
  • Logging: charmbracelet/loglog/slog (stdlib) across all packages
  • API fixes:
    • SLIMetricSource.MetricSourceSpecSLIMetricSource.Spec
    • SLOTimeWindow.Duration is now DurationShorthand struct (use .String())
    • SLOObjective.Target is now *float64 pointer
    • Remove BudgetAdjustment support (not in new SDK)
  • go.mod: auto-upgraded to go 1.25.5
  • AGENTS.md: updated with SDK API notes and corrected dependencies

Replace github.com/thisisibrahimd/openslo with github.com/OpenSLO/go-sdk v0.9.2.
Migrate from charmbracelet/log to stdlib log/slog across all packages.

API changes:
- SLIMetricSource.MetricSourceSpec → SLIMetricSource.Spec
- SLOTimeWindow.Duration is now DurationShorthand struct (use .String())
- SLOObjective.Target is now *float64 pointer
- Remove BudgetAdjustment support (not in new SDK)

Update AGENTS.md with SDK API notes and corrected dependencies.
@thisisibrahimd
thisisibrahimd merged commit f395cd5 into main Sep 3, 2026
1 check passed
@thisisibrahimd
thisisibrahimd deleted the change-openslo-sdk branch September 6, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant