-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathJsonrpcIncubatingAttributes.java
More file actions
40 lines (33 loc) · 1.42 KB
/
JsonrpcIncubatingAttributes.java
File metadata and controls
40 lines (33 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv.incubating;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class JsonrpcIncubatingAttributes {
/**
* Protocol version, as specified in the {@code jsonrpc} property of the request and its
* corresponding response.
*/
public static final AttributeKey<String> JSONRPC_PROTOCOL_VERSION =
stringKey("jsonrpc.protocol.version");
/**
* A string representation of the {@code id} property of the request and its corresponding
* response.
*
* <p>Notes:
*
* <p>Under the <a href="https://www.jsonrpc.org/specification">JSON-RPC specification</a>, the
* {@code id} property may be a string, number, null, or omitted entirely. When omitted, the
* request is treated as a notification. Using {@code null} is not equivalent to omitting the
* {@code id}, but it is discouraged. Instrumentations SHOULD NOT capture this attribute when the
* {@code id} is {@code null} or omitted.
*/
public static final AttributeKey<String> JSONRPC_REQUEST_ID = stringKey("jsonrpc.request.id");
// Enum definitions
private JsonrpcIncubatingAttributes() {}
}