Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RuleDenyGoInstrumentationFamily = Rule{ Base: Base{ Name: "RuleDenyGoInstrumentationFamily", }, Rule: []Filter{ Contains{ Base: Base{ Name: "RuleDenyGoInstrumentationFamily", }, AllowList: nil, DenyList: []string{ "github.com/go-instrumentation", }, }, }, } RuleDenyPbDotGo = Rule{ Base: Base{Name: "RuleDenyPbDotGo"}, Rule: []Filter{ Regex{ Base: Base{ Name: "RuleDenyPbDotGo", }, AllowList: nil, DenyList: []string{ ":.*\\.pb\\.go::", }, }, }, } RuleDenyProtobuf = Rule{ Base: Base{Name: "RuleDenyProtobuf"}, Rule: []Filter{ Contains{ Base: Base{ Name: "RuleDenyProtobuf", }, AllowList: nil, DenyList: []string{ "github.com/golang/protobuf", "github.com/gogo/protobuf", }, }, RuleDenyPbDotGo, }, } RuleOnlyMain = Rule{ Base: Base{Name: "RuleOnlyMain"}, Rule: []Filter{ Prefix{ Base: Base{ Name: "RuleOnlyMain", }, AllowList: []string{ "main", }, DenyList: nil, }, }, } // RuleDenyAlreadyUseJaeger // if you are using vendor mode, the jaeger in the vendor may be difference with $GOSRC/go_instrumentation/jaeger RuleDenyAlreadyUseJaeger = Rule{ Base: Base{Name: "RuleDenyAlreadyUseJaeger"}, Rule: []Filter{ Contains{ Base: Base{ Name: "RuleDenyAlreadyUseJaeger", }, AllowList: nil, DenyList: []string{ "github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc", "github.com/moby/buildkit/client", }, }, }, } RuleDenyInternal = Rule{ Base: Base{Name: "RuleDenyInternal"}, Rule: []Filter{Contains{ Base: Base{ Name: "RuleDenyInternal", }, AllowList: nil, DenyList: []string{ "internal", }, }, }, } RuleDenyGolang = Rule{ Base: Base{Name: "RuleDenyGolang"}, Rule: []Filter{ Prefix{ Base: Base{ Name: "RuleDenyGolang", }, AllowList: nil, DenyList: []string{ "runtime*", }, }, Contains{ Base: Base{ Name: "RuleDenyGolang", }, AllowList: nil, DenyList: []string{ "golang.org", }, }, }, } RuleDenyJaeger = Rule{ Base: Base{Name: "RuleDenyJaeger"}, Rule: []Filter{ Contains{ Base: Base{ Name: "RuleDenyJaeger", }, AllowList: nil, DenyList: []string{ "github.com/opentracing/opentracing-go", "github.com/uber/jaeger-client-go", "github.com/uber/jaeger-lib", }, }, }, } RuleDenyTooManyDetails = Rule{ Base: Base{Name: "RuleDenyTooManyDetails"}, Rule: []Filter{ GoRootFilter, RuleDenyProtobuf, RuleDenyGolang, RuleDenyJaeger, Contains{ Base: Base{ Name: "RuleDenyTooManyDetails", }, AllowList: nil, DenyList: []string{ "github.com/checkpoint-restore/go-criu", "github.com/urfave/cli", "github.com/sirupsen/logrus", "github.com/pkg/errors", "go.opencensus.io", "github.com/davecgh/go-spew/spew", }, }, }, } )
View Source
var GlobalRule = Rule{ Base: Base{Name: "GlobalRule"}, }
View Source
var GoRootFilter = GoRoot{ Base{Name: "GoRootFilter"}, }
View Source
var LogSwitch = true
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.