-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file bytes uploading error in jaeger: span too large to send #2628
Comments
上传的文件大小是多少M? |
What is the size of the uploaded file in M? |
不到1M |
Less than 1M |
试试在配置文件的 server 节点下添加如下配置 |
Try adding the following configuration under the server node of the configuration file |
不是这个问题追踪到里面去,发现span标签的大小超过Jaeger的限制 |
It’s not that this problem was traced inside, and it was found that the size of the span tag exceeded the limit of Jaeger |
把整体错误日志内容贴一下,以及控制器方法代码也贴一下 |
Post the content of the overall error log, and the code of the controller method |
目前已经改为标准库的http了,现在没有问题了; |
At present, it has been changed to http in the standard library, and there is no problem now; |
大概指导原因了,要不提 pr 修复一下,查一下 otel 的限制值就可以了 |
Probably the reason for the guidance, if you don’t mention pr to fix it, just check the limit value of otel |
https://github.com/jaegertracing/jaeger-client-go/blob/master/transport_udp.go#L37 What's the limit here? |
最终不能超过这个 // udpPacketMaxLength is the max size of UDP packet we want to send, synced with jaeger-agent.
udpPacketMaxLength = 65000 if params.MaxPacketSize <= 0 || params.MaxPacketSize > udpPacketMaxLength {
params.MaxPacketSize = udpPacketMaxLength
} open-telemetry/opentelemetry-go#2715 jaegertracing/jaeger-client-node#242 |
那小于65000 不太现实;可否在g.Client 去除对大[]byte的jaeger的上报吗 |
It is unrealistic if it is less than 65000; can you remove the report of the big []byte jaeger in g.Client |
可以在启动命令里添加 : |
You can add in the startup command: |
可以优雅一点吗 |
be more elegant |
你来提一个 pr 吧,目前框架支持传入命令参数处理! |
Come and mention a pr, the current framework supports the processing of incoming command parameters! |
可以使用 otlp 的方式上报 #2641 |
You can use otlp to report #2641 |
可以给个示例吗 |
can you give an example |
example/trace/otlp |
example/trace/otlp |
未在主库看到 |
not seen in main library |
1. What version of
Go
and system type/arch are you using?go 1.19
2. What version of
GoFrame
are you using?2.4.1
问题描述:
外部接口返回了一个 []byte。将[]byte 转换为 formData 文件、然后上传、就会出现 **2023/05/07 17:59:33 multiple errors during transform: span too large to send: ** 这个错误;
流程:
调用BytesToFormData() 后执行 g.Client().ContentType(contentType).PostVar(gctx.New(), requestURL, data) 大概过1-3秒左右就会报错
但是文件能正常的上传、只是jaeger报错。
ps: 上传接口就是个简单的上传;
以下是byte数组转FormData 函数
解决办法尝试过:
1 .尝试过将当前链路上所有的ctx都变成 gctx.New() --> 不管用
The text was updated successfully, but these errors were encountered: