kitex-contrib / obs-opentelemetry Goto Github PK
View Code? Open in Web Editor NEWAn extension library of OpenTelemetry for Kitex
License: Apache License 2.0
An extension library of OpenTelemetry for Kitex
License: Apache License 2.0
logging/logrus/option.go
func WithRecordStackTraceInSpan(recordStackTraceInSpan bool) Option { return option(func(cfg *config) { cfg.traceHookConfig.recordStackTraceInSpan = true }) }
obs-opentelemetry/provider/provider.go
Line 114 in abf0756
this will always be nil
otel official provides named global provider, maybe we could reuse this.
obs-opentelemetry/logging/zap/logger.go
Line 160 in c76e27f
为什么不使用 >= 判断。 这样我打印info日志 span的状态就为ok, error日志span的状态就可以是error
question:
github.com/kitex-contrib/obs-opentelemetry/provider imports
go.opentelemetry.io/otel/metric/global: module go.opentelemetry.io/otel/metric@latest found (v1.16.0), but does not contain package go.opentelemetry.io/otel/metric/global
Why does this problem occur, please?
我想在使用zap的实例,hlog.CtxDebugf(ctx,"test")默认打印ctx里的logid,我可以在hlog哪里注入呢
是否有slog的支持计划?
我的代码仓库:https://github.com/kalandramo/appdemo
当cmd/user/main.go
开启链路追踪时
server.WithSuite(tracing.NewServerSuite()),
build 时会报错
# github.com/kitex-contrib/obs-opentelemetry/tracing
/Users/mac/go/pkg/mod/github.com/kitex-contrib/[email protected]/tracing/tracer_client.go:109:63: cannot use metricsAttributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.RecordOption value in argument to c.histogramRecorder[ClientDuration].Record
/Users/mac/go/pkg/mod/github.com/kitex-contrib/[email protected]/tracing/tracer_server.go:116:63: cannot use metricsAttributes (variable of type []"go.opentelemetry.io/otel/attribute".KeyValue) as []metric.RecordOption value in argument to s.histogramRecorder[ServerDuration].Record
我想在上游go服务通过kitex client请求kitex服务的把trace_id 的信息传到下游服务,我应该通过哪个函数可以设置传下去的trace信息呢,有demo可以参考一下吗,我在仓库里没有找到这块的使用
目的:打印 出来 所在的文件 和行号
使用
logrusLogger := logrus.StandardLogger()
logger := kitexlogrus.NewLogger(kitexlogrus.WithLogger(logrusLogger))
logrusLogger.SetReportCaller(true)
打印出来 是 obs-opentelemetry/logging/[email protected]/logger.go:93 是 这个位置,不是 实际业务代码的位置,这个有办法解决吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.