Skip to content

Commit a3a3e62

Browse files
Copilottrask
andcommitted
Fix @deprecated annotation formatting for consistency
Co-authored-by: trask <218610+trask@users.noreply.github.com>
1 parent a4fa22c commit a3a3e62

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/PeerIncubatingAttributes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public final class PeerIncubatingAttributes {
3131
*
3232
* @deprecated Replaced by {@code service.peer.name}.
3333
*/
34-
@Deprecated public static final AttributeKey<String> PEER_SERVICE = stringKey("peer.service");
34+
@Deprecated
35+
public static final AttributeKey<String> PEER_SERVICE = stringKey("peer.service");
3536

3637
// Enum definitions
3738

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/RpcIncubatingAttributes.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,16 @@ public final class RpcIncubatingAttributes {
213213
* @deprecated Value should be included in {@code rpc.method} which is expected to be a
214214
* fully-qualified name.
215215
*/
216-
@Deprecated public static final AttributeKey<String> RPC_SERVICE = stringKey("rpc.service");
216+
@Deprecated
217+
public static final AttributeKey<String> RPC_SERVICE = stringKey("rpc.service");
217218

218219
/**
219220
* Deprecated, use {@code rpc.system.name} attribute instead.
220221
*
221222
* @deprecated Replaced by {@code rpc.system.name}.
222223
*/
223-
@Deprecated public static final AttributeKey<String> RPC_SYSTEM = stringKey("rpc.system");
224+
@Deprecated
225+
public static final AttributeKey<String> RPC_SYSTEM = stringKey("rpc.system");
224226

225227
/**
226228
* The Remote Procedure Call (RPC) system.

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/ServiceIncubatingAttributes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public final class ServiceIncubatingAttributes {
6464
* @deprecated deprecated in favor of stable {@link
6565
* io.opentelemetry.semconv.ServiceAttributes#SERVICE_NAME} attribute.
6666
*/
67-
@Deprecated public static final AttributeKey<String> SERVICE_NAME = stringKey("service.name");
67+
@Deprecated
68+
public static final AttributeKey<String> SERVICE_NAME = stringKey("service.name");
6869

6970
/**
7071
* A namespace for {@code service.name}.

0 commit comments

Comments
 (0)