Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit f43e293

Browse files
author
Chris Wiechmann
committed
Make sure an empty array is always returned for a CircuitPath
#140
1 parent 1bd834d commit f43e293

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
### Added
99
- Traffic-Monitor Authorization should support Multi-Organization [#141](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/141)
1010
- New optional parameter: `FILEBEAT_COMPRESSION_LEVEL` for Filebeat to Logstash compression rate [#143](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/143)
11+
- A warning is now logged if unexpectly no Circuit-Path for an API-Request is found [#140](https://github.com/Axway-API-Management-Plus/apigateway-openlogging-elk/issues/140)
1112

1213
## [3.4.0] 2021-09-02
1314
### Fixed

apibuilder4elastic/flows/trafficMonitorApi-circuitpath.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
{
116116
"name": "code",
117117
"type": "string",
118-
"value": "\"let result = [];\\n //console.log(data);\\n \\n if(typeof data.hits[0] != \\\"undefined\\\"){\\n var source = data.hits[0]._source;\\n if(source.circuitPath) {\\n return source.circuitPath;\\n } else {\\n logger.warn(`Unexpectedly no CircuitPath information found for API request: '${source.correlationId}'`);\\n return [];\\n }\\n }\""
118+
"value": "\"let result = [];\\n //console.log(data);\\n \\n if(typeof data.hits[0] != \\\"undefined\\\"){\\n var source = data.hits[0]._source;\\n if(source.circuitPath) {\\n result = source.circuitPath;\\n } else {\\n logger.warn(`Unexpectedly no CircuitPath information found for API request: '${source.correlationId}'`);\\n }\\n }\\n return result;\""
119119
}
120120
],
121121
"outputs": {

0 commit comments

Comments
 (0)