Giter Site home page Giter Site logo

obs-opentelemetry's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

obs-opentelemetry's Issues

kitex启用链路追踪时报错

我的代码仓库: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

import github.com/kitex-contrib/obs-opentelemetry/provider 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?

logrusLogger.SetReportCaller 设置问题

目的:打印 出来 所在的文件 和行号
使用

logrusLogger := logrus.StandardLogger()
logger := kitexlogrus.NewLogger(kitexlogrus.WithLogger(logrusLogger))
logrusLogger.SetReportCaller(true)

打印出来 是 obs-opentelemetry/logging/[email protected]/logger.go:93 是 这个位置,不是 实际业务代码的位置,这个有办法解决吗?

recordStackTraceInSpan param do not use

logging/logrus/option.go
func WithRecordStackTraceInSpan(recordStackTraceInSpan bool) Option { return option(func(cfg *config) { cfg.traceHookConfig.recordStackTraceInSpan = true }) }

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.