skywalking

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package skywalking implements skywalking plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalTracer

func GlobalTracer() *go2sky.Tracer

GlobalTracer 全局的 tracer

Types

type SkyFilter

type SkyFilter struct {
	// contains filtered or unexported fields
}

SkyFilter skywalking 过滤器实现

func NewSkyWalking

func NewSkyWalking(tracer *go2sky.Tracer, config *config) *SkyFilter

NewSkyWalking 实例化过滤器实现

func (SkyFilter) ClientFilter

func (sky SkyFilter) ClientFilter() filter.ClientFilter

ClientFilter 客户端 RPC 调用分布式追踪过滤器 Deprecated: Use InterceptClient instead.

func (SkyFilter) InterceptClient

func (sky SkyFilter) InterceptClient(ctx context.Context, req, rsp interface{}, f filter.ClientHandleFunc) error

InterceptClient is the client filter for tracing RPC.

func (SkyFilter) InterceptServer

func (sky SkyFilter) InterceptServer(
	ctx context.Context,
	req interface{},
	f filter.ServerHandleFunc,
) (interface{}, error)

InterceptServer is the server filter for tracing RPC.

func (SkyFilter) ServerFilter

func (sky SkyFilter) ServerFilter() filter.ClientFilter

ServerFilter 服务端 RPC 调用分布式追踪过滤器 Deprecated: Use InterceptServer instead.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL