Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow tagFilter to use response data
This change allows to use response data when tagging the Skipper span using the `tracingTag` filter. The use case for this is that users might want to consider an operation as failed even if it technically succeeds, e.g. because fallbacks were used. With this change, a response header can be sent, e.g. `"X-Fallback": "true"`, and then the filter `tracingTag("error", "${response.header.X-Fallback}")` would result in the span being marked as error. Another use cases could be that metrics should be captured by use case, but the use case is not apparent from the request and instead only defined by the result of the request processing.
- Loading branch information