Update with SpanNameReplacementBreakAfterMatch
@@ -236,13 +236,14 @@ For this, you will need to specify which port to bind to. An example config:
The SignalFx listener has the ability to identify and replace variables in span names and turn them into tags. It uses regex-based replacement rules. See the [syntax here](https://golang.org/pkg/regexp/syntax/).
The example below for example would replace span name `/api/v1/document/321083210/update` with `/api/v1/document/{documentId}/update` and add the tag `"documentId":"321083210"` to the span.
-Every rule will be applied in the order they are defined to every span that goes through the listener.
+Every rule will be applied in the order they are defined to every span that goes through the listener. The config parameter `SpanNameReplacementBreakAfterMatch` controls whether to stop processing span name replacement rules after the first matching rule for a span. The default value for this parameter is `true`.
Use caution when leveraging this feature: every expression, and the complexity of those expressions, will impact the throughput of the Gateway. Make sure to monitor your Gateway's resource utilization and size your instance accordingly to support your needs.
{
"Type": "signalfx",
"ListenAddr": "0.0.0.0:18080",
- "SpanNameReplacementRules": ["^\/api\/v1\/document\/(?P<documentId>.*)\/update$"]
+ "SpanNameReplacementRules": ["^\/api\/v1\/document\/(?P<documentId>.*)\/update$"],
+ "SpanNameReplacementBreakAfterMatch": false
}
##### collectd listener
