Skip to content

chore: refresh Go module dependencies - #677

Draft
motrilense wants to merge 2 commits into
canonical:3.8from
motrilense:refresh_go_dependencies
Draft

motrilense wants to merge 2 commits into
canonical:3.8from
motrilense:refresh_go_dependencies

Conversation

@motrilense

@motrilense motrilense commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Maintenance bump of Go dependencies (backport of #672 + #675 to 3.8).

Changes

Both src/maasagent and src/maasopenfga:

  • google.golang.org/grpc --> v1.83.2
  • go.opentelemetry.io/otel (+ metric, sdk, sdk/metric, trace) --> v1.44.0
  • golang.org/x/net --> v0.58.0
  • golang.org/x/text --> v0.41.0
  • golang.org/x/sync --> v0.22.0
  • golang.org/x/sys --> v0.47.0

Only src/maasopenfga:

  • github.com/jackc/pgx/v5 --> v5.9.0

OpenTelemetry exporters aligned to the v1.44.0 core:

  • maasagent: go.opentelemetry.io/otel/exporters/prometheus --> v0.66.0
  • maasopenfga: go.opentelemetry.io/otel/exporters/otlp/otlptrace and .../otlptracegrpc --> v1.44.0

One accompanying code change in src/maasagent/internal/daemon/daemon.go: the semconv import is moved from v1.26.0 to v1.41.0 to match the schema URL that the OpenTelemetry SDK requires.

…anonical#672)

Routine maintenance bump of Go dependencies across the two Go services
to keep them current with upstream releases.

maasagent
- `golang.org/x/net` -> v0.56.0
- `golang.org/x/text `-> v0.39.0
- `google.golang.org/grpc` -> v1.79.3
- OpenTelemetry stack -> v1.43.0 (with exporters/prometheus -> v0.65.0)
- Align the agent's OpenTelemetry resource `semconv` import (v1.26.0 ->
v1.40.0) to match the updated SDK's default resource schema

maasopenfga
- `github.com/jackc/pgx/v5` -> v5.9.0
- `golang.org/x/net` -> v0.53.0
- `golang.org/x/text` -> v0.39.0
- `google.golang.org/grpc` -> v1.80.0
- OpenTelemetry stack -> v1.43.0

All updated modules require Go ≤ 1.25 (MAAS uses Go 1.26).
Follow-up to [canonical#672](canonical#672),
continuing the refresh of the Go module dependencies.

## Changes

Both `src/maasagent` and `src/maasopenfga`:

- `google.golang.org/grpc` --> `v1.83.2`
- `go.opentelemetry.io/otel` (+ `metric`, `sdk`, `sdk/metric`, `trace`)
--> `v1.44.0`
- `golang.org/x/net` --> `v0.58.0`
- `golang.org/x/text` --> `v0.41.0`
- `golang.org/x/sync` --> `v0.22.0`
- `golang.org/x/sys` --> `v0.47.0`

OpenTelemetry exporters aligned to the `v1.44.0` core:

- `maasagent`: `go.opentelemetry.io/otel/exporters/prometheus` -->
`v0.66.0`
- `maasopenfga`: `go.opentelemetry.io/otel/exporters/otlp/otlptrace` and
`.../otlptracegrpc` --> `v1.44.0`

One accompanying code change in
`src/maasagent/internal/daemon/daemon.go`: the `semconv` import is moved
from `v1.40.0` to `v1.41.0` to match the schema URL that the
OpenTelemetry SDK requires.

## Notes

- gRPC `v1.83.2` requires `golang.org/x/net v0.58.0`, `otel v1.44.0`,
`x/sync v0.22.0`, `x/sys v0.47.0` and `x/text v0.41.0` in its own
`go.mod`, so those versions are the minimums resolved by `go mod tidy`
for each module's graph (not a hand-forced alignment)
- The OpenTelemetry exporters are bumped alongside the core so the whole
OTel graph stays on `v1.44.0`; this also prunes the leftover `otel
v1.43.0` from `maasopenfga/go.sum`. `otlptracegrpc v1.44.0` pulls
`grpc-gateway/v2` to `v2.29.0` as a required transitive
- All bumped versions keep the `go 1.26` directive; none require a newer
toolchain

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[maas-code-reviewer review]

LLM-generated review from https://github.com/canonical/maas-code-reviewer.
Intended to assist a human reviewer, not replace one — suggestions may be
incorrect, please verify before acting.

Overall, the dependency bumps look good and go mod tidy appears to have been run successfully across both modules.

A few minor observations:

  • The PR description mentions semconv was updated from v1.40.0 to v1.41.0, but the diff in src/maasagent/internal/daemon/daemon.go shows it actually replacing v1.26.0.
  • A few dependencies were bumped in src/maasagent/go.mod but are not listed in the PR description (e.g. golang.org/x/tools to v0.48.0, github.com/prometheus/client_golang to v1.23.2, and github.com/stretchr/testify to v1.11.1).
  • Since go.opentelemetry.io/otel was bumped to v1.44.0, please ensure that go.temporal.io/sdk/contrib/opentelemetry v0.6.0 (which remains unbumped in maasagent) is fully compatible with this newer SDK version during your testing. While core OpenTelemetry APIs are backwards compatible, contrib modules sometimes rely on specific SDK versions.

Comment thread src/maasagent/internal/daemon/daemon.go
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