Search before asking
Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
Hello,
I've written the call() function of my grpc server to configure sampling rate. Oap log shows it calls call() function and parse the sampling rate correctly. But skywalking ui shows the same trace frequecy.
What you expected to happen
the sampling rate dynamic configuration works via grpc.
How to reproduce
My yaml configuration shows below:
const agentConfigurationYAML = `default:
rate: 10000
duration: -1
services:
- name: qewqw-test::myapmmysqlservice
rate: 100
duration: -1`
func GetFromMysql() string {
//query mysql to get configuration.
return agentConfigurationYAML
}
func (s *configServer) Call(ctx context.Context, req *pb.ConfigurationRequest) (*pb.ConfigurationResponse, error) {
configValue := GetFromMysql()
log.Println("config value: ", configValue)
cfgTb := []*pb.Config{
{
Name: "agent-analyzer.default.traceSamplingPolicy",
Value: configValue,
},
.....
response := &pb.ConfigurationResponse{
ConfigTable: cfgTb,
Uuid: s.currentUUID,
}
fmt.Printf("single. will send response to oap. %v", response.ConfigTable)
return response, nil
}
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Search before asking
Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
Hello,
I've written the call() function of my grpc server to configure sampling rate. Oap log shows it calls call() function and parse the sampling rate correctly. But skywalking ui shows the same trace frequecy.
What you expected to happen
the sampling rate dynamic configuration works via grpc.
How to reproduce
My yaml configuration shows below:
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct