lib/instana/instrumentation/instrumented_request.rb in instana-1.195.1 vs lib/instana/instrumentation/instrumented_request.rb in instana-1.195.2

- old
+ new

@@ -44,16 +44,21 @@ end headers end + def request_params + ::Instana.secrets.remove_from_query(@env['QUERY_STRING']) + end + def request_tags { method: request_method, url: CGI.unescape(path_info), host: host_with_port, - header: extra_header_tags + header: extra_header_tags, + params: request_params }.compact end def correlation_data @correlation_data ||= parse_correlation_data @@ -86,10 +91,10 @@ return {} unless matches { external_trace_id: matches['trace'], external_state: @env['HTTP_TRACESTATE'], - trace_id: ::Instana::Util.header_to_id(matches['trace'][16..-1]), + trace_id: ::Instana::Util.header_to_id(matches['trace'][16..-1]), # rubocop:disable Style/SlicingWithRange, Lint/RedundantCopDisableDirective span_id: ::Instana::Util.header_to_id(matches['parent']) } end def parse_trace_state