Fix file formatting (#256)
This commit is contained in:
parent
d70f4ded94
commit
bdf2b8eafd
|
@ -18,23 +18,6 @@ package io.opentelemetry.auto.bootstrap.instrumentation.decorator
|
||||||
import io.opentelemetry.auto.config.Config
|
import io.opentelemetry.auto.config.Config
|
||||||
import io.opentelemetry.auto.instrumentation.api.MoreTags
|
import io.opentelemetry.auto.instrumentation.api.MoreTags
|
||||||
import io.opentelemetry.auto.instrumentation.api.Tags
|
import io.opentelemetry.auto.instrumentation.api.Tags
|
||||||
|
|
||||||
/*
|
|
||||||
* Copyright 2020, OpenTelemetry Authors
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import io.opentelemetry.trace.Span
|
import io.opentelemetry.trace.Span
|
||||||
|
|
||||||
import static io.opentelemetry.auto.test.utils.ConfigUtils.withConfigOverride
|
import static io.opentelemetry.auto.test.utils.ConfigUtils.withConfigOverride
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import io.opentelemetry.auto.bootstrap.AgentClassLoader
|
import io.opentelemetry.auto.bootstrap.AgentClassLoader
|
||||||
import io.opentelemetry.auto.config.Config
|
|
||||||
import io.opentelemetry.auto.bootstrap.instrumentation.decorator.HttpClientDecorator
|
import io.opentelemetry.auto.bootstrap.instrumentation.decorator.HttpClientDecorator
|
||||||
|
import io.opentelemetry.auto.config.Config
|
||||||
import io.opentelemetry.auto.instrumentation.api.MoreTags
|
import io.opentelemetry.auto.instrumentation.api.MoreTags
|
||||||
import io.opentelemetry.auto.instrumentation.api.SpanTypes
|
import io.opentelemetry.auto.instrumentation.api.SpanTypes
|
||||||
import io.opentelemetry.auto.instrumentation.api.Tags
|
import io.opentelemetry.auto.instrumentation.api.Tags
|
||||||
|
|
|
@ -46,10 +46,7 @@ public class TracingClientResponseSubscriber implements CoreSubscriber<ClientRes
|
||||||
this.clientRequest = clientRequest;
|
this.clientRequest = clientRequest;
|
||||||
this.context = context;
|
this.context = context;
|
||||||
spanRef = new AtomicReference<>(span);
|
spanRef = new AtomicReference<>(span);
|
||||||
this.parentSpan =
|
this.parentSpan = parentSpan == null ? DefaultSpan.getInvalid() : parentSpan;
|
||||||
parentSpan == null
|
|
||||||
? DefaultSpan.getInvalid()
|
|
||||||
: parentSpan;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue