Documentation ¶
Index ¶
- func AddMeterCount(action, description, unit string, value uint64, ...)
- func AddMeterUpDownCount(action, description, unit string, value int64, ...)
- func ErrorWithCtx(ctx context.Context, err error)
- func ErrorWithSpan(span trace.Span, err error)
- func GrpcClientHandler() grpc.DialOption
- func GrpcServerHandler() grpc.ServerOption
- func NewServerTrace(ctx context.Context, traceName string) (context.Context, trace.Span)
- func NewTrace(ctx context.Context, traceName string) (context.Context, trace.Span)
- func NewTraceFromHTTP(r *http.Request, traceName string) (*http.Request, trace.Span)
- func Shutdown(ctx context.Context) error
- func Start(startContext context.Context) (err error)
- func UnaryInterceptor() grpc.ServerOption
- type Config
- type Int64Guage
- type Int64UpCounter
- type Int64UpDownCounter
- type Protocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMeterCount ¶
func AddMeterUpDownCount ¶
func AddMeterUpDownCount(action, description, unit string, value int64, attributes ...attribute.KeyValue)
Add meter up/down count
func ErrorWithCtx ¶
func ErrorWithSpan ¶
func GrpcClientHandler ¶
func GrpcClientHandler() grpc.DialOption
func GrpcServerHandler ¶
func GrpcServerHandler() grpc.ServerOption
func NewServerTrace ¶
func NewTraceFromHTTP ¶
func UnaryInterceptor ¶
func UnaryInterceptor() grpc.ServerOption
Types ¶
type Int64Guage ¶
type Int64Guage struct {
metr.Int64ObservableGauge
}
type Int64UpCounter ¶
type Int64UpCounter struct {
metr.Int64Counter
}
type Int64UpDownCounter ¶
type Int64UpDownCounter struct {
metr.Int64UpDownCounter
}
Click to show internal directories.
Click to hide internal directories.