|
177 | 177 | import static datadog.trace.api.config.TracerConfig.TRACE_AGENT_PORT;
|
178 | 178 | import static datadog.trace.api.config.TracerConfig.TRACE_AGENT_URL;
|
179 | 179 | import static datadog.trace.api.config.TracerConfig.TRACE_ANALYTICS_ENABLED;
|
| 180 | +import static datadog.trace.api.config.TracerConfig.TRACE_HTTP_SERVER_PATH_RESOURCE_NAME_MAPPING; |
180 | 181 | import static datadog.trace.api.config.TracerConfig.TRACE_RATE_LIMIT;
|
181 | 182 | import static datadog.trace.api.config.TracerConfig.TRACE_REPORT_HOSTNAME;
|
182 | 183 | import static datadog.trace.api.config.TracerConfig.TRACE_RESOLVER_ENABLED;
|
@@ -284,6 +285,7 @@ public class Config {
|
284 | 285 | private final boolean httpServerRawQueryString;
|
285 | 286 | private final boolean httpServerRawResource;
|
286 | 287 | private final boolean httpServerRouteBasedNaming;
|
| 288 | + private final Map<String, String> httpServerPathResourceNameMapping; |
287 | 289 | private final boolean httpClientTagQueryString;
|
288 | 290 | private final boolean httpClientSplitByDomain;
|
289 | 291 | private final boolean dbClientSplitByInstance;
|
@@ -542,6 +544,9 @@ private Config(final String runtimeId, final ConfigProvider configProvider) {
|
542 | 544 | excludedClasses = tryMakeImmutableList(configProvider.getList(TRACE_CLASSES_EXCLUDE));
|
543 | 545 | headerTags = configProvider.getMergedMap(HEADER_TAGS);
|
544 | 546 |
|
| 547 | + httpServerPathResourceNameMapping = |
| 548 | + configProvider.getOrderedMap(TRACE_HTTP_SERVER_PATH_RESOURCE_NAME_MAPPING); |
| 549 | + |
545 | 550 | httpServerErrorStatuses =
|
546 | 551 | configProvider.getIntegerRange(
|
547 | 552 | HTTP_SERVER_ERROR_STATUSES, DEFAULT_HTTP_SERVER_ERROR_STATUSES);
|
@@ -891,6 +896,10 @@ public Map<String, String> getHeaderTags() {
|
891 | 896 | return headerTags;
|
892 | 897 | }
|
893 | 898 |
|
| 899 | + public Map<String, String> getHttpServerPathResourceNameMapping() { |
| 900 | + return httpServerPathResourceNameMapping; |
| 901 | + } |
| 902 | + |
894 | 903 | public BitSet getHttpServerErrorStatuses() {
|
895 | 904 | return httpServerErrorStatuses;
|
896 | 905 | }
|
@@ -1762,6 +1771,8 @@ public String toString() {
|
1762 | 1771 | + httpServerRawResource
|
1763 | 1772 | + ", httpServerRouteBasedNaming="
|
1764 | 1773 | + httpServerRouteBasedNaming
|
| 1774 | + + ", httpServerPathResourceNameMapping=" |
| 1775 | + + httpServerPathResourceNameMapping |
1765 | 1776 | + ", httpClientTagQueryString="
|
1766 | 1777 | + httpClientTagQueryString
|
1767 | 1778 | + ", httpClientSplitByDomain="
|
|
0 commit comments