Skip to content

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

Open
@shuqingzai

Description

@shuqingzai

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 不一致

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions