kitex-contrib / codec-dubbo

支持 kitex <-> dubbo 互通的 dubbo 协议编解码器。
Apache License 2.0
16 stars 14 forks source link

When dubbo-codec is enabled, metainfo does not take effect #84

Closed CoderPoet closed 5 months ago

CoderPoet commented 5 months ago

Describe the bug

When dubbo-codec is enabled, metainfo does not take effect

For example, in a trace scenario, the trace context cannot be extracted from metadata

image image

To Reproduce

Steps to reproduce the behavior:

  1. enable kitex otel instrumentation
  2. Check whether spans can be connected correctly

Expected behavior

spans can be connected correctly

Screenshots

See above

Kitex version:

v0.9.0

Environment:

GO111MODULE='on'
GOARCH='amd64'
GOBIN=''
GOCACHE='/Users/bytedance/Library/Caches/go-build'
GOENV='/Users/bytedance/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/bytedance/go/pkg/mod'
GONOPROXY='*.byted.org,*.everphoto.cn,git.smartisan.com,github.com/caicloud'
GONOSUMDB='*.byted.org,*.everphoto.cn,git.smartisan.com,github.com/caicloud'
GOOS='darwin'
GOPATH='/Users/bytedance/go'
GOPRIVATE='*.byted.org,*.everphoto.cn,git.smartisan.com,github.com/caicloud'
GOPROXY='https://go-mod-proxy.byted.org|https://goproxy.cn|https://proxy.golang.org|https://goproxy.byted.org|https://goproxy.cn|direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.google.cn'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_amd64'
GOVCS=''
GOVERSION='go1.22.1'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/44/cllwqpdn3ws53wyrjg9mm9740000gp/T/go-build3372170917=/tmp/go-build -gno-record-gcc-switches -fno-common'

Additional context

Add any other context about the problem here.