Ai
1 Star 0 Fork 0

黄海苗/otel_zap_logger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
propagation.go 479 Bytes
一键复制 编辑 原始数据 按行查看 历史
黄海苗 提交于 2023-06-15 14:34 +08:00 . 从github迁过来
package otel_zap_logger
import (
"context"
"net/http"
"gitee.com/Himan000/otel_zap_logger/propagation/extract"
"gitee.com/Himan000/otel_zap_logger/propagation/inject"
"github.com/gin-gonic/gin"
)
// HTTPInject inject spanContext
func HttpInject(ctx context.Context, request *http.Request) error {
return inject.HttpInject(ctx, request)
}
// GinMiddleware extract spanContext
func GinMiddleware(service string) gin.HandlerFunc {
return extract.GinMiddleware(service)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/Himan000/otel_zap_logger.git
git@gitee.com:Himan000/otel_zap_logger.git
Himan000
otel_zap_logger
otel_zap_logger
aab65004a158

搜索帮助