文档

Golang探针兼容性要求

更新时间:

本文列出了Golang应用监控对操作系统和架构的要求,以及支持的第三方组件和框架。

操作系统要求

编译工具名

操作系统

架构

instgo_linux_amd64

linux

amd64

instgo_linux_arm64

linux

arm64

instgo_darwin_amd64

darwin

amd64

instgo_darwin_arm64

darwin

arm64

instgo_windows_amd64.exe

windows

amd64

支持的Golang版本

1.18~1.22

支持的插件版本

组件

仓库地址

低版本

高版本

Net/HTTP

https://pkg.go.dev/net/http

v1.18

v1.21

Go Restful

https://github.com/emicklei/go-restful

v3.7.0

v3.12.0

FastHTTP

https://github.com/valyala/fasthttp

v1.50.0

v1.54.0

Go Zero

https://github.com/zeromicro/go-zero

v1.5.0

v1.6.5

Echo

https://github.com/labstack/echo

v4.11.4

v4.12.0

Gin

https://github.com/gin-gonic/gin

v1.8.0

v1.9.0

Mux

https://github.com/gorilla/mux

v1.8.1

-

Dubbo

https://github.com /apache/dubbo-go

v3.0.1

v3.0.5

Kratos

https://github.com/go-kratos/kratos

v2.5.2

v2.7.3

Go Micro

https://github.com/go-micro/go-micro

v4.9.0

v4.11.0

gRPC

https://github.com/grpc/grpc-go

v1.55.0

v1.64.0

Go Redis

https://github.com/redis/go-redis

v9.0.3

v9.0.5

RocketMQ Client Go

https://github.com/apache/rocketmq-client-go

v2.1.0

v2.1.2

AMQP

https://github.com/rabbitmq/amqp091-go

v1.9.0

v1.10.0

Go标准库MySQL

https://pkg.go.dev/database/sql

v1.18

v1.21

Go SQL Driver

https://github.com/go-sql-driver/mysql

v1.4.0

v1.7.1

Mongo

https://github.com/mongodb/mongo-go-driver

v1.11.1

v1.11.7

Gorm

https://github.com/go-gorm/gorm

v1.22.0

v1.25.1

OTel SDK

https://github.com/open-telemetry/opentelemetry-go

v1.6.0

v1.26.0

kitex

https://github.com/cloudwego/kitex

v0.9.0

v0.10.0

常见问题

为什么MQ访问下游存在断链?

受限于MQ框架的具体实现,当前版本的Golang探针对某些MQ框架的Trace统计存在一定限制,具体如下:

框架

说明

rocketmq-client-go

  • 仅支持PushConsumer。

  • 对于一次性消费多条消息,且消费中存在调用下游的情况,调用下游的Span都会被挂到这一批消费的最后一条下面(一次消费一条消息则不存在该问题)。

amqp

  • 如果消费中存在调用依赖方,调用下游的Span无法与Consumer正常串联。

  • 本页导读