@@ -183,34 +183,33 @@ private SamplingRuleApplier(
183183 boolean matches (Attributes attributes , Resource resource ) {
184184 int matchedAttributes = 0 ;
185185
186- String httpTarget = attributes .get (UrlAttributes .URL_PATH );
187- if (httpTarget == null ) {
188- httpTarget = attributes .get (HTTP_TARGET );
186+ String httpTarget = attributes .get (UrlAttributes .URL_PATH );
187+ if (httpTarget == null ) {
188+ httpTarget = attributes .get (HTTP_TARGET );
189189 }
190190
191- String httpUrl = attributes .get (UrlAttributes .URL_FULL );
192- if (httpUrl == null ) {
193- httpUrl = attributes .get (HTTP_URL );
191+ String httpUrl = attributes .get (UrlAttributes .URL_FULL );
192+ if (httpUrl == null ) {
193+ httpUrl = attributes .get (HTTP_URL );
194194 }
195195
196- String httpMethod = attributes .get (HttpAttributes .HTTP_REQUEST_METHOD );
197- if (httpMethod == null ) {
198- httpMethod = attributes .get (HTTP_METHOD );
196+ String httpMethod = attributes .get (HttpAttributes .HTTP_REQUEST_METHOD );
197+ if (httpMethod == null ) {
198+ httpMethod = attributes .get (HTTP_METHOD );
199199 }
200200
201201 if (httpMethod != null && httpMethod .equals (_OTHER_REQUEST_METHOD )) {
202202 httpMethod = attributes .get (HttpAttributes .HTTP_REQUEST_METHOD_ORIGINAL );
203203 }
204204
205- String host = attributes .get (ServerAttributes .SERVER_ADDRESS );
206- if (host == null ) {
207- host = attributes .get (NET_HOST_NAME );
205+ String host = attributes .get (ServerAttributes .SERVER_ADDRESS );
206+ if (host == null ) {
207+ host = attributes .get (NET_HOST_NAME );
208208 if (host == null ) {
209209 host = attributes .get (HTTP_HOST );
210210 }
211211 }
212212
213-
214213 for (Map .Entry <AttributeKey <?>, Object > entry : attributes .asMap ().entrySet ()) {
215214 Matcher matcher = attributeMatchers .get (entry .getKey ().getKey ());
216215 if (matcher == null ) {
0 commit comments