docs: @SuppressWarnings("deprecation")
    private void maybeApplyChanges(Map<String, String> queryMap) {
      String changeStr = queryMap.get(CHANGE);
      if (PERMANENT_CHANGE.equals(changeStr)) {
        TraceParams.Builder traceParamsBuilder = traceConfig.getActiveTraceParams().toBuilder();
        String samplingProbabilityStr = queryMap.get(QUERY_COMPONENT_SAMPLING_PROBABILITY);
        if (!isNullOrEmpty(samplingProbabilityStr)) {
          double samplingProbability = Double.parseDouble(samplingProbabilityStr);
          traceParamsBuilder.setSampler(Samplers.probabilitySampler(samplingProbability));
        }
        String maxNumberOfAttributesStr = queryMap.get(QUERY_COMPONENT_MAX_NUMBER_OF_ATTRIBUTES);
        if (!isNullOrEmpty(maxNumberOfAttributesStr)) {
          int maxNumberOfAttributes = Integer.parseInt(maxNumberOfAttributesStr);
          traceParamsBuilder.setMaxNumberOfAttributes(maxNumberOfAttributes);
        }
        String maxNumberOfAnnotationsStr = queryMap.get(QUERY_COMPONENT_MAX_NUMBER_OF_ANNOTATIONS);
        if (!isNullOrEmpty(maxNumberOfAnnotationsStr)) {
          int maxNumberOfAnnotations = Integer.parseInt(maxNumberOfAnnotationsStr);
          traceParamsBuilder.setMaxNumberOfAnnotations(maxNumberOfAnnotations);
        }
        String maxNumberOfNetworkEventsStr =
            queryMap.get(QUERY_COMPONENT_MAX_NUMBER_OF_NETWORK_EVENTS);
        if (!isNullOrEmpty(maxNumberOfNetworkEventsStr)) {
          int maxNumberOfNetworkEvents = Integer.parseInt(maxNumberOfNetworkEventsStr);
          traceParamsBuilder.setMaxNumberOfNetworkEvents(maxNumberOfNetworkEvents);
        }
        String maxNumverOfLinksStr = queryMap.get(QUERY_COMPONENT_MAX_NUMBER_OF_LINKS);
        if (!isNullOrEmpty(maxNumverOfLinksStr)) {
          int maxNumberOfLinks = Integer.parseInt(maxNumverOfLinksStr);
          traceParamsBuilder.setMaxNumberOfLinks(maxNumberOfLinks);
        }
        traceConfig.updateActiveTraceParams(traceParamsBuilder.build());
      } else if (RESTORE_DEFAULT_CHANGE.equals(changeStr)) {
        traceConfig.updateActiveTraceParams(TraceParams.DEFAULT);
      }
    }