You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2023/11/09 07:07:05 UTC

(dubbo-go) branch feature-triple updated: fix(otel): fields mistake in tracing options (#2492)

This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch feature-triple
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/feature-triple by this push:
     new d5832bf00 fix(otel): fields mistake in tracing options (#2492)
d5832bf00 is described below

commit d5832bf002c1d68223f9b5e0bd3058e460f1791d
Author: Wang Guan <wg...@gmail.com>
AuthorDate: Thu Nov 9 15:07:00 2023 +0800

    fix(otel): fields mistake in tracing options (#2492)
---
 otel/trace/options.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/otel/trace/options.go b/otel/trace/options.go
index 0ed054c16..ca33676f5 100644
--- a/otel/trace/options.go
+++ b/otel/trace/options.go
@@ -99,19 +99,19 @@ func WithRatio(ratio float64) Option {
 
 func WithRatioMode() Option {
 	return func(opts *Options) {
-		opts.Otel.TraceConfig.Propagator = "ratio"
+		opts.Otel.TraceConfig.SampleMode = "ratio"
 	}
 }
 
 func WithAlwaysMode() Option {
 	return func(opts *Options) {
-		opts.Otel.TraceConfig.Propagator = "always"
+		opts.Otel.TraceConfig.SampleMode = "always"
 	}
 }
 
 func WithNeverMode() Option {
 	return func(opts *Options) {
-		opts.Otel.TraceConfig.Propagator = "never"
+		opts.Otel.TraceConfig.SampleMode = "never"
 	}
 }