File tree Expand file tree Collapse file tree
dd-trace-core/src/main/java/datadog/trace/common/metrics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313public final class MetricKey {
1414 static final DDCache <String , UTF8BytesString > RESOURCE_CACHE = DDCaches .newFixedSizeCache (32 );
1515 static final DDCache <String , UTF8BytesString > SERVICE_CACHE = DDCaches .newFixedSizeCache (8 );
16- static final DDCache <String , UTF8BytesString > SERVICE_SOURCE_CACHE = DDCaches .newFixedSizeCache (4 );
16+ static final DDCache <String , UTF8BytesString > SERVICE_SOURCE_CACHE = DDCaches .newFixedSizeCache (16 );
1717 static final DDCache <String , UTF8BytesString > OPERATION_CACHE = DDCaches .newFixedSizeCache (64 );
1818 static final DDCache <String , UTF8BytesString > TYPE_CACHE = DDCaches .newFixedSizeCache (8 );
1919 static final DDCache <String , UTF8BytesString > KIND_CACHE = DDCaches .newFixedSizeCache (8 );
@@ -57,8 +57,8 @@ public MetricKey(
5757 this .isTraceRoot = isTraceRoot ;
5858 this .spanKind = utf8 (KIND_CACHE , spanKind );
5959 this .peerTags = peerTags == null ? Collections .emptyList () : peerTags ;
60- this .httpMethod = utf8 (HTTP_METHOD_CACHE , httpMethod );
61- this .httpEndpoint = utf8 (HTTP_ENDPOINT_CACHE , httpEndpoint );
60+ this .httpMethod = httpMethod == null ? null : utf8 (HTTP_METHOD_CACHE , httpMethod );
61+ this .httpEndpoint = httpEndpoint == null ? null : utf8 (HTTP_ENDPOINT_CACHE , httpEndpoint );
6262
6363 int tmpHash = 0 ;
6464 tmpHash = HashingUtils .addToHash (tmpHash , this .isTraceRoot );
You can’t perform that action at this time.
0 commit comments