Skip to content

Commit

Permalink
spotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
steverao committed Dec 19, 2024
1 parent 117c9d5 commit 2d53ecc
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.javaagent.instrumentation.apachedubbo.v2_7;

import io.opentelemetry.api.GlobalOpenTelemetry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
/** Entrypoint for instrumenting Apache Dubbo servers and clients. */
public final class DubboTelemetry {

/** Returns a new client {@link DubboTelemetry} configured with the given {@link OpenTelemetry}. */
/**
* Returns a new client {@link DubboTelemetry} configured with the given {@link OpenTelemetry}.
*/
public static DubboTelemetry createClient(OpenTelemetry openTelemetry) {
return builder(openTelemetry).buildClient();
}

/** Returns a new server {@link DubboTelemetry} configured with the given {@link OpenTelemetry}. */
/**
* Returns a new server {@link DubboTelemetry} configured with the given {@link OpenTelemetry}.
*/
public static DubboTelemetry createServer(OpenTelemetry openTelemetry) {
return builder(openTelemetry).buildServer();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public final class DubboTelemetryBuilder {
private final List<AttributesExtractor<DubboRequest, Result>> attributesExtractors =
new ArrayList<>();
private Function<
SpanNameExtractor<DubboRequest>, ? extends SpanNameExtractor<? super DubboRequest>>
SpanNameExtractor<DubboRequest>, ? extends SpanNameExtractor<? super DubboRequest>>
clientSpanNameExtractorTransformer = Function.identity();
private Function<
SpanNameExtractor<DubboRequest>, ? extends SpanNameExtractor<? super DubboRequest>>
SpanNameExtractor<DubboRequest>, ? extends SpanNameExtractor<? super DubboRequest>>
serverSpanNameExtractorTransformer = Function.identity();

DubboTelemetryBuilder(OpenTelemetry openTelemetry) {
Expand Down Expand Up @@ -82,7 +82,8 @@ public DubboTelemetryBuilder setServerSpanNameExtractor(
}

/**
* Returns a new client {@link DubboTelemetry} with the settings of this {@link DubboTelemetryBuilder}.
* Returns a new client {@link DubboTelemetry} with the settings of this {@link
* DubboTelemetryBuilder}.
*/
public DubboTelemetry buildClient() {
DubboRpcAttributesGetter rpcAttributesGetter = DubboRpcAttributesGetter.INSTANCE;
Expand Down Expand Up @@ -111,7 +112,8 @@ public DubboTelemetry buildClient() {
}

/**
* Returns a new server {@link DubboTelemetry} with the settings of this {@link DubboTelemetryBuilder}.
* Returns a new server {@link DubboTelemetry} with the settings of this {@link
* DubboTelemetryBuilder}.
*/
public DubboTelemetry buildServer() {
DubboRpcAttributesGetter rpcAttributesGetter = DubboRpcAttributesGetter.INSTANCE;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.instrumentation.apachedubbo.v2_7;

import io.opentelemetry.api.GlobalOpenTelemetry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ final class TracingFilter implements Filter {
private final Instrumenter<DubboRequest, Result> instrumenter;
private final boolean isClient;

TracingFilter(
Instrumenter<DubboRequest, Result> instrumenter,
boolean isClient) {
TracingFilter(Instrumenter<DubboRequest, Result> instrumenter, boolean isClient) {
this.instrumenter = instrumenter;
this.isClient = isClient;
}
Expand Down

0 comments on commit 2d53ecc

Please sign in to comment.