From 9cb658d4ed84260290378ee30ae50adfb37e16b5 Mon Sep 17 00:00:00 2001 From: Miguel de Barros Date: Fri, 6 Sep 2019 21:01:41 +0100 Subject: [PATCH] fixed sample flag --- src/observables/elastic-logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observables/elastic-logger.js b/src/observables/elastic-logger.js index 821845b..e2b2279 100644 --- a/src/observables/elastic-logger.js +++ b/src/observables/elastic-logger.js @@ -45,7 +45,7 @@ const addElasticsearchMetaData = (value) => { 'result': (value.metadata.event.state.status === 'success') ? 'success' : 'error', 'name': value.metadata.trace.service, 'id': value.metadata.trace.spanId, - 'sampled': !!value.metadata.trace.sampled + 'sampled': !value.metadata.trace.sampled } } return {...value, ...elasticsearchMetaData}