380
*/
381
export function readAgentHostOTelPolicySettings(configurationService: IConfigurationService): IAgentHostOTelSettings {
382
>
const policyValue = <T>(key: string): T | undefined => configurationService.inspect<T>(key).policyValue;
agentService.ts
383
>
return {
384
>
enabled: policyValue<boolean>(AgentHostOTelEnabledSettingId),
385
>
exporterType: policyValue<string>(AgentHostOTelExporterTypeSettingId),
386
>
otlpProtocol: policyValue<string>(AgentHostOTelOtlpProtocolSettingId),
387
>
otlpEndpoint: policyValue<string>(AgentHostOTelOtlpEndpointSettingId),
388
>
captureContent: policyValue<boolean>(AgentHostOTelCaptureContentSettingId),
389
>
outfile: policyValue<string>(AgentHostOTelOutfileSettingId),
390
>
serviceName: policyValue<string>(AgentHostOTelServiceNameSettingId),
391
>
resourceAttributes: policyValue<Record<string, string>>(AgentHostOTelResourceAttributesSettingId),
392
>
};
393
>
}
394
395
/**