github.com/Axway/agent-sdk@v1.1.101/pkg/traceability/sampling/definitions.go (about) 1 package sampling 2 3 // SampleKey - the key used in the metadata when a transaction qualifies for sampling and should be sent to Observer 4 // defaultSamplingRate - the default sampling rate in percentage 5 const ( 6 SampleKey = "sample" 7 countMax = 100 8 defaultSamplingRate = 0 9 maximumSamplingRate = 10 10 globalCounter = "global" 11 ) 12 13 // TransactionDetails - details about the transaction that are used for sampling 14 type TransactionDetails struct { 15 Status string 16 APIID string 17 SubID string 18 }