elastic / fleet-server

The Fleet server allows managing a fleet of Elastic Agents.
Other
11 stars 81 forks source link

[8.16](backport #4037) Support sampling rate in APM configuration #4051

Closed mergify[bot] closed 3 weeks ago

mergify[bot] commented 3 weeks ago

What is the problem this PR solves?

This PR introduces support for APM sample rate using the values provided by elastic-agent though the control protocol // Please do not just reference an issue. Explain WHAT the problem this PR solves here.

How does this PR solve the problem?

Added a check for a value of transacton sampling in apmConfigToInstrumentation (it's an optional float32) and formatted the vale as a string to be included in the instrumentation copnfig. // Explain HOW you solved the problem in your code. It is possible that during PR reviews this changes and then this section should be updated.

How to test this PR locally

Design Checklist

Checklist

Related issues


This is an automatic backport of pull request #4037 done by Mergify.

elastic-sonarqube[bot] commented 3 weeks ago

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube