lib/opentracing/instrumentation/rack/regexp_path_sanitazer.rb in opentracing-instrumentation-0.1.3 vs lib/opentracing/instrumentation/rack/regexp_path_sanitazer.rb in opentracing-instrumentation-0.1.4

- old
+ new

@@ -8,9 +8,10 @@ # RegexpPathSanitazer return raw path class RegexpPathSanitazer DEFAULT_REPLACE_MAP = { '/:object_id\1' => %r{/[0-9a-f]{24}(/|$)}, '/:sequence_id\1' => %r{/\d+(/|$)}, + '/:phone\1' => %r{/\+\d+(/|$)}, }.freeze def initialize( replace_map: DEFAULT_REPLACE_MAP )