Skip to content
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

net/http: The metrics exported by OpenTelemetry are inconsistent with the official definition #4177

Open
shuqingzai opened this issue Mar 1, 2025 · 0 comments
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@shuqingzai
Copy link

Go version

go version go1.23.6 darwin/arm64

GoFrame version

2.8.3

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

参考文档

文档中所描述的指标与属性字段与 OTEL 定义的不一致,导致 OTEL 采集后导入到其他监控系统时,无法转换与显示出正确的数据,参考:https://opentelemetry.io/docs/specs/semconv/attributes-registry/http/

也许可以参考:open-telemetry/opentelemetry-go-contrib/instrumentation#otelginopen-telemetry/opentelemetry-go-contrib/instrumentation#net/http 实现标准化字段导出,以便可以在其它系统正确转换属性

What did you see happen?

无法正确转换为 OTEL 标准指标属性

What did you expect to see?

GF 定义的指标、属性与 OTEL 不一致

@shuqingzai shuqingzai added the bug It is confirmed a bug, but don't worry, we'll handle it. label Mar 1, 2025
@Issues-translate-bot Issues-translate-bot changed the title net/http: OpenTelemetry 导出的指标与官方所定义的不一致 net/http: The metrics exported by OpenTelemetry are inconsistent with the official definition Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

1 participant