Skip to content

Latest commit

 

History

History
281 lines (232 loc) · 27.7 KB

CHANGES.md

File metadata and controls

281 lines (232 loc) · 27.7 KB

Changes by Version

Release Notes.

0.8.0

Features

  • Support multi-address gRPC backends with pick_first failover.

Plugins

  • Update the verified framework version ranges. Every plugin module now requires the newest version whose hook-point signatures (receiver, parameters, and results) match the last version previously tested (identical, or for dubbo-go identical through the protocol type aliases), and every scenario tests that version on Go 1.26 and Go 1.27. The new upper bounds are gin v1.12.0, go-restful v3.14.0, mux v1.8.1, iris v12.2.11, fasthttp v1.75.0, fiber v2.52.15, echo v4.16.0, goframe v2.10.3, dubbo-go v3.3.1, kratos v2.9.2, go-micro v4.11.2, gorm v1.31.2, gorm postgres driver v1.6.3, mongo-driver v1.17.10, go-sql-driver/mysql v1.10.1, pgx v5.11.0, go-elasticsearch v8.19.7, go-redis v9.23.0, amqp091-go v1.15.0, pulsar-client-go v0.21.0, kafka-go v0.4.51, logrus v1.10.2, and zap v1.28.0. Some lower bounds rise because those versions never actually built in their scenarios: kratos v2.6.3 is the first release whose test imports still resolve with the gRPC version the agent requires, the go-micro scenario depends on a go-micro/examples commit that needs go-micro v4.9.0, the gorm scenario's MySQL driver needs gorm v1.25.1, dubbo-go starts at v3.0.2 because v3.0.1 does not carry the trace context to the provider, and go-sql-driver/mysql starts at v1.5.0 because older drivers do not implement driver.DriverContext, so sql.Open never parses the DSN and the sql plugin cannot attach the peer address. dubbo-go v3.3.2 keeps the hook signatures through type aliases, but it removes the config package that the scenario application uses, so it is not listed yet. The kratos scenario runs in CI again.
  • Support grpc v1.84.0. That release merged processUnaryRPC and processStreamingRPC into processRPC, removed sendResponse, and returns client streams wrapped in clientStreamWrapper, so with the previous plugin the client segment was never reported and server spans lost the RPC type tag and the SendResponse span. The new plugins/grpc-v184 handles v1.84.0 and later and reports the same spans as before; plugins/grpc keeps handling older releases and builds whose grpc version cannot be detected. Both share the grpc plugin name.
  • go-redis: do not create spans for the commands go-redis sends while setting up a connection. Since v9.9.0 the setup runs through the client hooks, so HELLO and the AUTH fallback exported the password in the cache.args and cache.key tags, and SELECT, READONLY, and CLIENT SETNAME/SETINFO/MAINT_NOTIFICATIONS/TRACKING appeared as cache operations of the user's trace, marked as errors against servers that do not support them. These commands are not traced when the application sends them either, since AUTH and HELLO carry credentials and the others configure the connection.
  • Split the dubbo plugin by version. dubbo-go v3.3.1 moved the graceful-shutdown filter from protocol to protocol/base and protocol/result, so the interceptors no longer compiled into that package. plugins/dubbo keeps the releases before v3.3.1 and plugins/dubbo-v331 handles v3.3.1 and later; both share the dubbo plugin name, and their type assertions no longer panic on unexpected arguments. With the Triple protocol of dubbo-go v3.3, the provider runs on net/http, so the provider entry span is created by the http plugin and named by the dubbo plugin.
  • amqp: create producer spans for every publish API. Since amqp091-go v1.10.0, Publish and PublishWithContext no longer go through PublishWithDeferredConfirmWithContext, so they had no producer span and no context propagation; PublishWithDeferredConfirm is now intercepted too, with one span per message. The injected headers also reach messages published with nil Headers.
  • zap: report logs after the pre-write hooks that zap v1.28.0 applies in CheckedEntry.Write, so OAP receives the same entry and fields as the configured outputs instead of values a hook redacted or rewrote.
  • logrus: do not panic when formatting an entry whose Data is nil, which logrus v1.10.0 and later keep nil in Entry.Dup.

Documentation

  • Update docs/en/agent/support-plugins.md with the framework version ranges verified by the plugin test scenarios, and describe the two grpc plugins.
  • Update the Go versions of the published base images in docs/en/setup/docker.md to Go 1.26 and Go 1.27.
  • Describe in docs/en/development-and-contribution/write-plugin-testing.md how each plugin test case pins its framework version and builds outside the repository workspace, and document the toolkit and excepted-file options.
  • Describe the sampling policy in docs/en/agent/tracing-metrics-logging.md: agent.sampler applies only to the traces that a service starts, and a request with a valid upstream sw8 header is always traced. Fix the environment key of agent.sampler there, which is SW_AGENT_SAMPLE, not SW_AGENT_SAMPLER.

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 fixes the remaining HTTP/2 advisories but requires Go 1.26; the Go 1.26 floor entry below takes it.
  • Fix panic when converting NoInit histograms during meter collect.
  • Fix concurrent map access in RuntimeContext Get/Set/clone.
  • Move the module floor from Go 1.25 to Go 1.26 and test on Go 1.26 and Go 1.27, since Go 1.25 reached end of life with the Go 1.27 release. This lets the agent module and the reporter (plugins/core) take golang.org/x/net v0.61.0, which fixes the remaining HTTP/2 advisories (GO-2026-6603, GO-2026-6610, GO-2026-6611, GO-2026-6612, GO-2026-6617; fixed in v0.60.0), and golang.org/x/text v0.43.0. The floor stays at Go 1.26 rather than 1.27 because the agent's go directive becomes the minimum for every application that imports it, and Go 1.26 is still supported upstream. The CI build matrix, plugin scenarios, e2e and Windows jobs, and the published base images (go1.26, go1.27) move with it. golangci-lint moves from v2.5.0 to v2.15.0 (built with Go 1.27) and is installed from https://golangci-lint.run/install.sh, because older copies of the install script pick the SBOM checksum for every release since v2.12.2. goconst keeps its previous scope (composite literals excluded), and the grpc.Dial deprecation exclusions also match staticcheck's new fully qualified messages.
  • Build each plugin test case outside the repository go.work. Minimal version selection across the workspace lifted the framework to the newest version required by any plugin or scenario module, so about two thirds of the cases did not build the version they were named after. The go-elasticsearch and goframe scenarios now declare the full module path (/v8, /v2) so the per-case version is applied at all, and the cross-goroutine scenario uses the local toolkit.
  • Remove every reachable third-party advisory from the skywalking-go-agent binary, which links the plugin modules. go-git moves to v5.19.3, go-billy to v5.9.2, and circl to v1.6.5 through the go-micro plugin, and amqp091-go moves to v1.15.0.
  • Fix a fatal semacquire not on the G stack crash when a goroutine starts while another goroutine holds the lock of the starting goroutine's active span, for example a worker that tags an async span through SpanRef. The agent took the trace context snapshot for the new goroutine in runtime.newproc1, which runs on the system stack, where waiting for a lock is a fatal error. The snapshot is now taken in runtime.newproc and runtime.newcoro, on the stack of the goroutine that runs the go statement, right before they switch to the system stack, and newproc1 only hands it over. It is not taken while the goroutine holds runtime locks, as when the runtime starts its GC workers, where blocking is fatal too. Goroutines that the runtime starts for debugger calls, for testing/synctest bubbles, and for GC workers no longer inherit the trace context.
  • Fix a panic at program start when the application logs through logrus or zap from a package init function that runs before the agent core is initialized. The toolkit logging API no longer panics in that case either.
  • Fix a toolkit exit span leaking when its injector returns an error. The span was never ended, so the whole segment was never reported.
  • grpc: end the exit span of every client stream exactly once. A stream whose NewStream failed, a stream wrapped by a client stream interceptor, and a stream that ended without a RecvMsg (canceled context, closed connection, SendMsg error) left the exit span open, so the whole segment, usually the one of the incoming request, was never reported. The span is now finished from an OnFinish call option that grpc calls once, with the final status, when the stream finishes, so a stream that ends with an error, including a canceled stream, is an error span. A stream interceptor that panics after creating the stream no longer leaves the span open either.
  • http, mux, goframe: keep the optional interfaces of the response writer. The wrappers hid http.Flusher and the http.ResponseController features, which broke server-sent events and response deadlines, and the goframe wrapper also hid http.Hijacker, so GoFrame WebSocket upgrades failed with HTTP 500. The wrappers now implement http.Flusher and http.Hijacker exactly when the wrapped writer does, and Unwrap for http.ResponseController.
  • echov4: serve a request whose sw8 header cannot be decoded, untraced, instead of answering HTTP 500. When a handler panics or calls runtime.Goexit, end the entry span and mark it as an error, without recovering the panic, so the segment is reported and the next request on the connection is not added to the stale span.
  • mongo: do not crash the application when a user CommandMonitor sets only some of its callbacks, and finish the command span also when the user's Succeeded or Failed callback panics.
  • sql: end the span of (*sql.Conn).Raw. The interceptor read a second result that Raw does not return, so the span never ended and the whole segment was never reported.
  • gorm: end the gorm span of an operation with a scope that returns a session, such as tx.WithContext(ctx). The span was stored in a new clone of the statement, where the end callback never found it, so the segment was never reported. Also end the gorm span, marked as an error, when a gorm callback or a hook such as AfterFind panics: gorm runs its callbacks without defer, so the span stayed open.
  • pulsar: do not crash the application on SendAsync with a nil callback, which the client allows. Do not panic on a failed Receive, which received nothing and creates no span. Stop sending a broker lookup request on every send and receive to find the span peer: the peer and mq.broker are now the client's service URL, as in the Java agent, instead of the address of the broker that owns the topic.
  • rocketmq: end the exit span of a failed SendSync, which stayed open and kept the segment from being reported, and do not panic on a send without messages.
  • kratos: do not panic in the client middleware when a body-less HTTP call reads the reply header into a nil http.Header. Since kratos v2.7.2, that header is sent as the request header.
  • go-micro: do not fail a call, stream, or publish when its exit span cannot be created, for example a call with an empty service name and client.WithAddress. The call runs untraced, and the peer of the caller's span does not change.
  • Bump vulnerable dependencies in the agent module, the reporter (plugins/core), and the go-agent tool. github.com/klauspost/compress moves from v1.15.9 to v1.18.7 to fix CVE-2026-63209, golang.org/x/net moves from v0.61.0 to v0.62.0 to fix GO-2026-6860 and GO-2026-6866, and github.com/sirupsen/logrus in the go-agent tool moves from v1.9.0 to v1.9.4 to fix CVE-2025-65637.
  • Keep a trace that the caller has already sampled. An entry span that starts a tracing context checked for the upstream sw8 reference before attaching it, so the local sampler ran even when the request carried a valid sw8 header: with agent.sampler below 1, a downstream service dropped already-sampled traces, sent no sw8 header onward, and its own downstream services could start unrelated traces. The sampler also received an empty operation name, and the sw_go_created_tracing_context_counter{created_by="propagated"} self-observability counter never increased. A sw8 header now counts as valid only when every required field is set, as in the Java agent, so a header such as 1---0---- no longer creates a segment with an empty trace ID.
  • Apply the ignore rules (agent.ignore_suffix and agent.trace_ignore_path) and the disconnected-reporter check to every request that starts a trace. A goroutine keeps its tracing context after a trace ends, and the checks ran only on a goroutine without one. On a goroutine that serves several requests, such as the goroutine of an HTTP/1 keep-alive connection, every request after the first was therefore traced even when it should be ignored. Also, the spans that an ignored request creates in its own goroutine, such as its database calls, are now ignored, as they already were under a request that the sampler drops, instead of each one starting its own trace. When several goroutines continue one captured context, such as the send and receive goroutines of a gRPC stream, each now gets its own noop span for an ignored or sampled-out request, instead of sharing one span's nesting count.
  • Fix the gin and goframe plugins with a negative header_length_threshold. Collecting the request headers panicked after the entry span was created, so the span was never ended and stayed active on its goroutine. A value of 0 or less now means no limit, as for redis.max_args_bytes; before, 0 sent an empty value, while collect_request_headers already decides whether headers are collected at all. The plugins also pass the span to the after-hook before collecting the headers.
  • End the spans that a plugin leaves active on a goroutine, so they cannot ignore or capture the later requests on it. The agent binds a span to the interceptor that stores it with invocation.SetContext. When a later span starts on the goroutine and the active span belongs to an interceptor that has finished, for example because its after-hook did not end the span or panicked first, the agent ends that span and counts it in sw_go_possible_leaked_context_counter. When BeforeInvoke returns an error or panics after it created spans and before it stored one with SetContext, the agent ends the spans it created; a context that the hook continued, such as the snapshot of a stream, is kept. Before, such a span stayed active: under the noop span of an ignored, sampled-out, or disconnected-reporter request, every later request on the goroutine, such as an HTTP/1 keep-alive connection, was ignored, and under a traced span they joined the leaked trace. Spans that no interceptor stores, such as the spans of the toolkit API or of gorm callbacks, are not ended by the agent.
  • Keep a reused entry span active until the outer plugin ends it, when the nested plugin that reused it is an interceptor that stores it with invocation.SetContext, such as gin mounted on a net/http ServeMux. Before, the nested End made the parent active while the outer plugin was still serving the request, so the spans created afterwards started new traces. A nested reuser that only creates and ends the span, such as a kratos middleware, a pull consumer reading messages inside a request, or the toolkit API, still makes the parent active, so its next span is created as before. An exit span reused by a nested plugin, such as the sql driver inside gorm, is also still popped.
  • Keep the names of all Go builtin functions, such as close, copy, min, and max, when the agent copies the agent core packages into an instrumented package. Before, only some builtins were known, and the others were renamed like functions of the copied package, so the instrumented build failed.

Unsupported Library Versions

Moving to Go 1.26 and testing every plugin case with its own framework version drops the following versions. No version was dropped because Go 1.26 cannot build it; the reasons are listed per row.

Library No longer supported Supported in this release Reason
Go 1.25 and earlier 1.26, 1.27 Go 1.25 reached end of life. The agent module's go directive is the minimum for every application that imports it.
grpc before v1.83.2 v1.83.2 to v1.84.0 The agent module requires grpc v1.83.2, so applications cannot select an older release.
kratos v2.3.1 to v2.6.2 v2.6.3 to v2.9.2 These releases' tests import google.golang.org/grpc/test/grpc_testing, which the required grpc no longer contains, so their modules do not resolve.
go-micro v4.6.0 to v4.8.1 v4.9.0 to v4.11.2 Never tested as named. The test application needs go-micro v4.9.0 through go-micro/examples.
gorm v1.22.0 to v1.25.0 v1.25.1 to v1.31.2 Never tested as named. The tested MySQL driver needs gorm v1.25.1.
go-sql-driver/mysql v1.4.0 to v1.4.1 v1.5.0 to v1.10.1 No driver.DriverContext, so sql.Open never parses the DSN and the sql plugin creates no spans.
dubbo-go v3.0.1 v3.0.2 to v3.3.1 Does not carry the trace context to the provider.
gin v1.7.0 to v1.8.x v1.9.0 to v1.12.0 Listed in the documentation but not covered by any test case.
iris v12.1.x v12.2.0 to v12.2.11 Listed in the documentation but not covered by any test case.
go-redis v9.0.3 v9.0.4 to v9.23.0 Listed in the documentation but not covered by any test case.

Issues and PR

  • All issues are here
  • All and pull requests are here

0.7.0

Features

  • Support Windows plugin test.
  • Support Kafka reporter.
  • Add recover to goroutine to prevent unexpected panics.
  • Add mutex to fix some data race.
  • Replace external goapi dependency with in-repo generated protocols.
  • Support pprof profiling.
  • Align the agent with the supported Go releases (retire EOL Go 1.19-1.23): publish Go 1.24, 1.25, 1.26 base images, bump the module go.mod floor to Go 1.24, and run the CI build, plugin, and e2e jobs on Go 1.24-1.26.
  • Support managing toolkit spans across goroutines through SpanRef.

Plugins

  • Support gRPC v1.81.1 with Go 1.25 and Go 1.26.

Documentation

Bug Fixes

  • Fix gRPC server tracing with recent internal stream types.
  • Fix plugin interceptors bypassed on Windows.
  • Fix wrong tracing context switch when trace ignore plugin activated.
  • Fix data race when sending trace data to reporter.
  • Fix multiple data races in span lifecycle, correlation context and segment collection.
  • Add recover protection for the metrics, profile and segment-transform goroutines.
  • Fix the RocketMQ batch consumer span: report once with one segment reference per message (new ExtractContext API).
  • Fix nil dereference and wrong span ownership in the RocketMQ/Pulsar async producer callbacks.
  • Fix concurrent finish flags of the gRPC streaming client and the go-micro socket close.
  • Fix the MongoDB command span to complete through the async API (events may fire on different goroutines).
  • Fix the gorm span storage to be per-statement and the mux response writer wrapping a nil writer.
  • Add recover protection for the kafka instance-check and gRPC profile-fetch goroutines.
  • Fix unsynchronized consumer-tag map access in the AMQP plugin (fatal concurrent map read/write).

Issues and PR

  • All issues are here
  • All and pull requests are here

0.6.0

Features

  • support attaching events to span in the toolkit.
  • support record log in the toolkit.
  • support manually report metrics in the toolkit.
  • support manually set span error in the toolkit.

Plugins

Documentation

  • Add docs for AddEvent in Tracing APIs
  • Add Logging APIs document into Manual APIs.
  • Add Metric APIs document into Manual APIs.

Bug Fixes

  • Fix wrong docker image name and -version command.
  • Fix redis plugin cannot work in cluster mode.
  • Fix cannot find file when exec build in test/plugins.
  • Fix not set span error when http status code >= 400
  • Fix http plugin cannot provide peer name when optional Host is empty.
  • Fix Correctly instrument newproc1 for Go 1.23+ parameter counts

Issues and PR

  • All issues are here
  • All and pull requests are here

0.5.0

  • Add go 1.23 support.
  • Remove go 1.16, 1.17, and 1.18 support.

Features

  • Add support trace ignore.
  • Enhance the observability of makefile execution.
  • Update the error message if the peer address is empty when creating an exit span.
  • Support enhancement go 1.23.

Plugins

  • Support Pulsar MQ.
  • Support Segmentio-Kafka MQ.
  • Support http headers collection for Gin.
  • Support higher versions of grpc.
  • Support go-elasticsearchv8 database client framework.
  • Support http.Hijacker interface for mux plugin.
  • Support collect statements and parameters in the Gorm plugin.

Bug Fixes

  • Fix panic error when root span finished.
  • Fix when not route is found, the gin operation name is "http.Method:", example: "GET:".
  • Fix got span type is wrong error when creating exit span with trace sampling.

0.4.0

Features

  • Add support ignore suffix for span name.
  • Adding go 1.21 and 1.22 in docker image.

Plugins

  • Support setting a discard type of reporter.
  • Add redis.max_args_bytes parameter for redis plugin.
  • Changing intercept point for gin, make sure interfaces could be grouped when params defined in relativePath.
  • Support RocketMQ MQ.
  • Support AMQP MQ.
  • support Echov4 framework.

Documentation

Bug Fixes

  • Fix users can not use async api in toolkit-trace.
  • Fix cannot enhance the vendor management project.
  • Fix SW_AGENT_REPORTER_GRPC_MAX_SEND_QUEUE not working on metricsSendCh & logSendCh chans of gRPC reporter.
  • Fix ParseVendorModule error for special case in vendor/modules.txt.
  • Fix enhance method error when unknown parameter type.
  • Fix wrong tracing context when trace have been sampled.
  • Fix enhance param error when there are multiple params.
  • Fix lost trace when multi middleware handlerFunc in gin plugin.
  • Fix DBQueryContext execute error in sql plugin.
  • Fix stack overflow as endless logs triggered.

Issues and PR

  • All issues are here
  • All and pull requests are here

0.3.0

Features

  • Support manual tracing APIs for users.

Plugins

  • Support mux HTTP server framework.
  • Support grpc server and client framework.
  • Support iris framework.
  • Support fasthttp framework.
  • Support fiber framework.

Documentation

  • Add Tracing APIs document into Manual APIs.

Bug Fixes

  • Fix Docker image not supporting the arm64 platform.

Issues and PR

  • All issues are here
  • All and pull requests are here

0.2.0

Features

  • Enhance the plugin rewrite ability to support switch and if/else in the plugin codes.
  • Support inject the skywalking-go into project through agent.
  • Support add configuration for plugin.
  • Support metrics report API for plugin.
  • Support report Golang runtime metrics.
  • Support log reporter.
  • Enhance the logrus logger plugin to support adapt without any settings method invoke.
  • Disable sending observing data if the gRPC connection is not established for reducing the connection error log.
  • Support enhance vendor management project.
  • Support using base docker image to building the application.

Plugins

  • Support go-redis v9 redis client framework.
  • Support collecting Native HTTP URI parameter on server side.
  • Support Mongo database client framework.
  • Support Native SQL database client framework with MySQL Driver.
  • Support Logrus log report to the backend.
  • Support Zap log report to the backend.

Documentation

  • Combine Supported Libraries and Performance Test into Plugins section.
  • Add Tracing, Metrics and Logging document into Plugins section.

Bug Fixes

  • Fix throw panic when log the tracing context before agent core initialized.
  • Fix plugin version matcher tryToFindThePluginVersion to support capital letters in module paths and versions.

Issues and PR

  • All issues are here
  • All and pull requests are here

0.1.0

Features

  • Initialize the agent core and user import library.
  • Support gRPC reporter for management, tracing protocols.
  • Automatic detect the log frameworks and inject the log context.

Plugins

  • Support Gin framework.
  • Support Native HTTP server and client framework.
  • Support Go Restful v3 framework.
  • Support Dubbo server and client framework.
  • Support Kratos v2 server and client framework.
  • Support Go-Micro v4 server and client framework.
  • Support GORM v2 database client framework.
  • Support MySQL Driver detection.

Documentation

  • Initialize the documentation.

Issues and PR

  • All issues are here
  • All and pull requests are here