Skip to content
Permalink
Browse files
Merge pull request #422 from maxingg/feature/trace
fix: modify tracing filter config method.
  • Loading branch information
AlexStocks committed May 15, 2022
2 parents bcc678d + 575a6b0 commit bf77bc379dd2d5819fcec5c24588f8c22d276ac9
Showing 2 changed files with 5 additions and 11 deletions.
@@ -29,7 +29,7 @@ import (
"github.com/apache/dubbo-go-pixiu/pkg/tracing"
)

const jaegerTraceIDInHeader = "uber-trace-id"
const TraceIDInHeader = "dubbo-go-pixiu-trace-id"

// nolint
func init() {
@@ -47,6 +47,8 @@ type (
TraceFilter struct {
span trace.Span
}

Config struct{}
)

func (ap *Plugin) Kind() string {
@@ -58,7 +60,7 @@ func (ap *Plugin) CreateFilterFactory() (filter.HttpFilterFactory, error) {
}

func (m *TraceFilterFactory) Config() interface{} {
return nil
return &Config{}
}

func (m *TraceFilterFactory) Apply() error {
@@ -58,12 +58,4 @@ static_resources:
shutdown_config:
timeout: "60s"
step_timeout: "10s"
reject_policy: "immediacy"
tracing:
name: "jaeger"
servicename: "dubbo-go-pixiu"
sampler:
type: "ratio"
param: 0.5
config:
url: "http://127.0.0.1:14268/api/traces"
reject_policy: "immediacy"

0 comments on commit bf77bc3

Please sign in to comment.