Giter VIP home page Giter VIP logo

Comments (10)

wklken avatar wklken commented on August 30, 2024

是否放到这个迭代?

from bk-iam-saas.

wklken avatar wklken commented on August 30, 2024

https://github.com/open-telemetry/opentelemetry-go
https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation


from bk-iam-saas.

wklken avatar wklken commented on August 30, 2024

https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/github.com/gin-gonic/gin/otelgin/example/server.go

gin middleware, 下一层的需要额外处理


from bk-iam-saas.

wklken avatar wklken commented on August 30, 2024

顺带测试下性能差异

from bk-iam-saas.

wklken avatar wklken commented on August 30, 2024

https://opentelemetry.io/docs/instrumentation/go/libraries/

https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/github.com/gin-gonic/gin/otelgin/example

https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation

from bk-iam-saas.

wklken avatar wklken commented on August 30, 2024

https://hulkdev.com/2022/04/18/monitoring-go-apps-with-distributed-tracing-and-opentelemetry.html

from bk-iam-saas.

zhu327 avatar zhu327 commented on August 30, 2024

https://github.com/open-telemetry/opentelemetry-go-contrib/blob/d2456f2c66b3c9d2e02e2dd726021fc8b634529e/instrumentation/github.com/gin-gonic/gin/otelgin/gintrace.go#L41

应该使用c.Request.Context() 作为向下传递的 context

from bk-iam-saas.

zhu327 avatar zhu327 commented on August 30, 2024

https://github.com/go-redis/redis/tree/v8.11.5/extra/redisotel

redis, 加载hook, 后续每个调用, 第一个参数都需要从 context 传递

from bk-iam-saas.

zhu327 avatar zhu327 commented on August 30, 2024

https://github.com/uptrace/opentelemetry-go-extra/tree/main/otelsqlx

sqlx支持, 所有的sql方法调用改为 xxConext方法, 比如: ExecContext

from bk-iam-saas.

zhu327 avatar zhu327 commented on August 30, 2024

gorequest 不支持 opentelemetry, 可能需要换一个 http client, 比如: https://github.com/imroc/req

from bk-iam-saas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.