gogf / gf

GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
https://goframe.org
MIT License
11.77k stars 1.6k forks source link

OpenTelemetry V2.8 improvement suggestions #3931

Open gnineh opened 1 week ago

gnineh commented 1 week ago

Is your feature request related to a problem?

Option No

Describe the solution you'd like

目前工作中存在以下痛点,V2.8 中不支持。

  1. 可以定制一个参数,开启实现SQL记录
  2. 可以定制一个参数,开启实现请求参数的记录
  3. 可以定制一个参数,开启实现返回参数的记录
  4. 需要增加HTTP请求方法的记录 GET/PUT/POST/DELETE

Describe alternatives you've considered

暂无

Additional

No response

yiqiniu commented 6 days ago

支持一下

Issues-translate-bot commented 6 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Support it

wisonlau commented 5 days ago

有没OpenTelemetry使用的例子,目前比较难上手,按照官方demo搭不起来

Issues-translate-bot commented 5 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Are there any examples of using OpenTelemetry? It’s currently difficult to get started. I can’t set it up according to the official demo.

gqcn commented 4 days ago

Good proposal, we can consider it together @houseme .

houseme commented 4 days ago

有没OpenTelemetry使用的例子,目前比较难上手,按照官方demo搭不起来

是客户端还是服务端呢?服务端文档:https://www.jaegertracing.io/docs/1.63/getting-started/

客服端:https://github.com/gogf/gf/tree/master/example/trace

houseme commented 4 days ago

Good proposal, we can consider it together @houseme .

这一块的配置可以改成独立处理, 1、http 请求的在 server 配置, 2、数据库的在database配置中, 3、针对:‘需要增加HTTP请求方法的记录 GET/PUT/POST/DELETE’建议用户自己封装中间价处理,可以塞到最终response处理的中间价MiddlewareHandlerResponse中。

欢迎大家一起共建。

Issues-translate-bot commented 4 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Good proposal, we can consider it together @houseme .

The configuration of this piece can be changed to independent processing.

  1. The http request is configured in server.
  2. The database is in the database configuration,
  3. For: 'Need to add records of HTTP request methods GET/PUT/POST/DELETE', it is recommended that users encapsulate the middle price processing by themselves, and can stuff it into the middle price MiddlewareHandlerResponse of the final response processing.

Everyone is welcome to build together.

github-actions[bot] commented 3 days ago

Hello @gnineh. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it! 你好 @gnineh。我们喜欢您的提案/反馈,并希望您或其他社区成员通过拉取请求做出贡献。我们提前感谢您的贡献,并期待对其进行审查。