ev1lQuark opened a new issue, #2505:
URL: https://github.com/apache/dubbo-go/issues/2505
## Problem description
In the process of configuring and starting otel.tracing, set it according to
the following configuration:
```golang
ins, err := dubbo.NewInstance(
dubbo.WithName("dubbo_sample_tracing"),
dubbo.WithProtocol(
protocol.WithTriple(),
protocol.WithPort(20000),
),
dubbo.WithRegistry(
registry.WithZookeeper(),
registry.WithAddress("127.0.0.1:2181"),
),
dubbo.WithTracing(
trace.WithEnabled(),
trace.WithStdoutExporter(),
trace.WithW3cPropagator(),
trace.WithRatioMode(),
trace.WithRatio(0.5),
),
)
```
But the otel tracing filter is not append to service.filter slice. So as the
trace.WithEnabled() is correctly set by user, the otel.Tracing module is not
working as expected.
## Todo
During the startup process, if a module is enabled, the corresponding filter
will be automatically added, allowing users to configure module enable logic
easily.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]