import { SearchHit } from '../../../../../../../src/core/types/elasticsearch' ; import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types' ; export function convertConfigSettingsToString ( hit ) { const config = hit . _source ; if ( config . settings ?. transaction_sample_rate ) { config . settings . transaction_sample_rate = config . settings . transaction_sample_rate . toString ( ) ; } if ( config . settings ?. transaction_max_spans ) { config . settings . transaction_max_spans = config . settings . transaction_max_spans . toString ( ) ; } return hit ; }