Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.24
go-version: 1.25
- uses: actions/checkout@v2
with:
submodules: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/plugin-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- name: Set up Go 1.24
- name: Set up Go 1.25
uses: actions/setup-go@v2
with:
go-version: 1.24
go-version: 1.25
- name: Setup docker (missing on MacOS)
if: runner.os == 'macos'
env:
Expand Down Expand Up @@ -154,10 +154,10 @@ jobs:
with:
name: test-tools-macos-12
path: test/plugins/dist
- name: Set up Go 1.24
- name: Set up Go 1.25
uses: actions/setup-go@v2
with:
go-version: 1.24
go-version: 1.25
- name: Setup docker (missing on MacOS)
if: runner.os == 'macos'
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/skywalking-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Set up Go 1.24
- name: Set up Go 1.25
uses: actions/setup-go@v2
with:
go-version: 1.24
go-version: 1.25
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
Expand All @@ -50,7 +50,7 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest ]
go-version: [ 1.24, 1.25, 1.26 ]
go-version: [ 1.25, 1.26 ]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/windows-plugin-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ jobs:
curl -SL https://github.com/docker/compose/releases/download/v2.24.5/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: WSL – Install Go 1.24
- name: WSL – Install Go 1.25
shell: wsl-run {0}
run: |
wget https://go.dev/dl/go1.24.13.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.24.13.linux-amd64.tar.gz
wget https://go.dev/dl/go1.25.13.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.25.13.linux-amd64.tar.gz

echo 'export GOROOT=/usr/local/go' >> ~/.profile
echo 'export GOPATH=$HOME/go' >> ~/.profile
Expand Down Expand Up @@ -134,10 +134,10 @@ jobs:
run: |
sudo cp -rf ~/repo/* /mnt/d/a/skywalking-go

- name: Windows Set up Go 1.24
- name: Windows Set up Go 1.25
uses: actions/setup-go@v2
with:
go-version: 1.24
go-version: 1.25
- name: WSL Setup Tools
shell: wsl-run {0}
run: |
Expand Down
133 changes: 85 additions & 48 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,70 +14,107 @@
# See the License for the specific language governing permissions and
# limitations under the License.

linters-settings:
govet:
enable:
- shadow
gocyclo:
min-complexity: 15
dupl:
threshold: 200
goconst:
min-len: 2
min-occurrences: 2
misspell:
locale: US
lll:
line-length: 150
goimports:
local-prefixes: github.com/apache/skywalking-go
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- ifElseChain
funlen:
lines: 100
statements: 50
whitespace:
multi-if: false
multi-func: false
gosec:
includes:
- G401
- G306
- G101
excludes:
- G204

version: "2"
linters:
enable:
- bodyclose
- dogsled
- dupl
- errcheck
- funlen
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- whitespace
disable:
- unused
settings:
dupl:
threshold: 200
funlen:
lines: 100
statements: 50
goconst:
min-len: 2
min-occurrences: 2
gocritic:
disabled-checks:
- ifElseChain
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
gocyclo:
min-complexity: 15
gosec:
includes:
- G401
- G306
- G101
excludes:
- G204
govet:
enable:
- shadow
lll:
line-length: 150
misspell:
locale: US
# v1.64.8 did not run staticcheck quickfix analyzers. Keep that set so the
# Go 1.25 linter upgrade does not rewrite existing code. ST* exclusions match
# the v1 staticcheck defaults. grpc.Dial and credentials.ProtocolInfo.ServerName
# stay in use: Dial is supported through grpc 1.x, and NewClient changes the
# default resolver scheme and idle behavior the reporter relies on.
staticcheck:
checks:
- all
- -ST1000
- -ST1003
- -ST1016
- -ST1020
- -ST1021
- -ST1022
- -QF*
whitespace:
multi-if: false
multi-func: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
rules:
- linters:
- staticcheck
text: 'SA1019: grpc\.Dial(Context)? is deprecated'
- linters:
- staticcheck
text: 'SA1019: info\.ServerName is deprecated'
formatters:
enable:
- gofmt
- goimports
settings:
goimports:
local-prefixes:
- github.com/apache/skywalking-go
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Release Notes.

#### Bug Fixes

* Bump vulnerable dependencies in the agent module, the reporter (`plugins/core`), and the go-agent tool. `google.golang.org/grpc` moves from v1.55.0 to v1.83.2, the lowest release that fixes every current grpc advisory, including CVE-2026-33186 (GO-2026-4762, fixed in v1.79.3), the HTTP/2 issues fixed in v1.82.1 and v1.83.1, and CVE-2026-84445 (GO-2026-6443), which was reintroduced in v1.83.0 and fixed again in v1.83.2. `golang.org/x/net` moves from v0.10.0 to v0.58.0 (required by grpc v1.83.2; this is above v0.56.0, which is the lowest release that fixes every x/net advisory except the ones fixed only in v0.60.0) and `golang.org/x/text` moves to v0.41.0. These releases require Go 1.25, so the module floor and CI move from Go 1.24 to Go 1.25 and Go 1.26. golangci-lint moves from v1.64.8 to v2.5.0, because v1.64.8 is built with Go 1.24 and refuses modules that declare `go 1.25.0`. The v2 config keeps the v1 staticcheck set (no quickfix rewrites) and leaves `grpc.Dial` in place, since it stays supported through grpc 1.x and `NewClient` would change the reporter's resolver scheme and idle behavior. grpc v1.84.0 needs the same Go 1.25 and fixes no additional advisory. `golang.org/x/net` v0.60.0 would fix the remaining HTTP/2 advisories but requires Go 1.26 and would drop Go 1.25, so those stay open.
* Fix panic when converting NoInit histograms during meter collect.
* Fix concurrent map access in RuntimeContext Get/Set/clone.

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# User used targeting base image
ARG BASE_GO_IMAGE
# Build the agent base image
ARG BASE_BUILDER_IMAGE='golang:1.24'
ARG BASE_BUILDER_IMAGE='golang:1.25'

FROM ${BASE_BUILDER_IMAGE} as builder
# Go Agent Version
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ deps:
$(GO_GET) -v -t -d ./...

linter:
$(GO_LINT) version || curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.64.8/install.sh | sh -s -- -b $(GO_PATH)/bin v1.64.8
$(GO_LINT) version || curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v2.5.0/install.sh | sh -s -- -b $(GO_PATH)/bin v2.5.0

##@ General

Expand Down Expand Up @@ -153,13 +153,12 @@ release: ## Build skywalking-go agent release
/bin/sh tools/release/create_bin_release.sh
/bin/sh tools/release/create_source_release.sh

base.all := go1.24 go1.25 go1.26
base.all := go1.25 go1.26
base.each = $(word 1, $@)


##@ Docker

base.image.go1.24 := golang:1.24
base.image.go1.25 := golang:1.25
base.image.go1.26 := golang:1.26

Expand Down
10 changes: 5 additions & 5 deletions docs/en/agent/support-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metrics based on the tracing data.

* HTTP Server
* `gin`: [Gin](https://github.com/gin-gonic/gin) tested v1.7.0 to v1.9.0 and v1.10.1.
* `http`: [Native HTTP](https://pkg.go.dev/net/http) tested go v1.24 to go v1.26.
* `http`: [Native HTTP](https://pkg.go.dev/net/http) tested go v1.25 to go v1.26.
* `go-restfulv3`: [Go-Restful](https://github.com/emicklei/go-restful) tested v3.7.1 to 3.10.2.
* `mux`: [Mux](https://github.com/gorilla/mux) tested v1.7.0 to v1.8.0.
* `iris`: [Iris](https://github.com/kataras/iris) tested v12.1.0 to 12.2.5.
Expand All @@ -13,19 +13,19 @@ metrics based on the tracing data.
* `echov4`: [Echov4](https://github.com/labstack/echo) tested v4.0.0 to v4.11.4
* `goframe`: [GoFrame](https://github.com/gogf/gf/) tested v2.6.0 to v2.7.3
* HTTP Client
* `http`: [Native HTTP](https://pkg.go.dev/net/http) tested go v1.24 to go v1.26.
* `http`: [Native HTTP](https://pkg.go.dev/net/http) tested go v1.25 to go v1.26.
* `fasthttp`: [FastHttp](https://github.com/valyala/fasthttp) tested v1.10.0 to v1.50.0.
* RPC Frameworks
* `dubbo`: [Dubbo](https://github.com/apache/dubbo-go) tested v3.0.1 to v3.0.5.
* `kratosv2`: [Kratos](https://github.com/go-kratos/kratos) tested v2.3.1 to v2.6.2.
* `microv4`: [Go-Micro](https://github.com/go-micro/go-micro) tested v4.6.0 to v4.10.2.
* `grpc` : [gRPC](https://github.com/grpc/grpc-go) tested v1.55.0 to v1.81.1.
* `grpc` : [gRPC](https://github.com/grpc/grpc-go). The agent module requires v1.83.2 or newer (the reporter links this library). Plugin hooks still match the client and server methods present in that release.
* Database Client
* `gorm`: [GORM](https://github.com/go-gorm/gorm) tested v1.22.0 to v1.25.10.
* [MySQL Driver](https://github.com/go-gorm/mysql)
* [PostgreSQL Driver](https://github.com/go-gorm/postgres) tested v1.5.2 to v1.6.0.
* `mongo`: [Mongo](https://github.com/mongodb/mongo-go-driver) tested v1.11.1 to v1.11.7.
* `sql`: [Native SQL](https://pkg.go.dev/database/sql) tested go v1.24 to go v1.26.
* `sql`: [Native SQL](https://pkg.go.dev/database/sql) tested go v1.25 to go v1.26.
* [MySQL Driver](https://github.com/go-sql-driver/mysql) tested v1.4.0 to v1.7.1.
* [pgx/v5 stdlib](https://github.com/jackc/pgx/tree/master/stdlib) tested v5.5.5 to v5.7.2.
* `go-elasticsearchv8`: [go-elasticsearch](https://github.com/elastic/go-elasticsearch) tested v8.10.0 to v8.11.1.
Expand All @@ -40,7 +40,7 @@ metrics based on the tracing data.
# Metrics Plugins
The meter plugin provides the advanced metrics collections.

* `runtimemetrics`: [Native Runtime Metrics](https://pkg.go.dev/runtime/metrics) tested go v1.24 to go v1.26.
* `runtimemetrics`: [Native Runtime Metrics](https://pkg.go.dev/runtime/metrics) tested go v1.25 to go v1.26.

# Logging Plugins
The logging plugin provides the advanced logging collections.
Expand Down
2 changes: 1 addition & 1 deletion docs/en/setup/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN go build -toolexec="skywalking-go-agent" -a /path/to/project

In the above code, we have performed the following actions:

1. Used the SkyWalking Go provided image as the base image, which currently supports the following Go versions: **1.24, 1.25, 1.26**.
1. Used the SkyWalking Go provided image as the base image, which currently supports the following Go versions: **1.25, 1.26**.
2. Copied the project into the Docker image.
3. Installed SkyWalking Go and compiled the project, [read this documentation for more detail](./gobuild.md).
The SkyWalking Go agent is already installed in the `/usr/local/bin` directory with the name **skywalking-go-agent**.
20 changes: 10 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
module github.com/apache/skywalking-go

go 1.24
go 1.25.0

require (
github.com/google/uuid v1.3.0
github.com/google/uuid v1.6.0
github.com/pkg/errors v0.9.1
github.com/segmentio/kafka-go v0.4.43
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.13.0 // indirect
google.golang.org/grpc v1.55.0
google.golang.org/protobuf v1.30.0
golang.org/x/net v0.58.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.41.0 // indirect
google.golang.org/grpc v1.83.2
google.golang.org/protobuf v1.36.11
)

require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect
github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect
github.com/klauspost/compress v1.15.9 // indirect
github.com/pierrec/lz4/v4 v4.1.15 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230526161137-0005af68ea54 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect
)
Loading
Loading