-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathGraphqlIncubatingAttributes.java
More file actions
50 lines (38 loc) · 1.53 KB
/
GraphqlIncubatingAttributes.java
File metadata and controls
50 lines (38 loc) · 1.53 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
41
42
43
44
45
46
47
48
49
50
/*
* 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 GraphqlIncubatingAttributes {
/**
* The GraphQL document being executed.
*
* <p>Notes:
*
* <p>If instrumentation can reliably identify and redact sensitive information it SHOULD do it.
*/
public static final AttributeKey<String> GRAPHQL_DOCUMENT = stringKey("graphql.document");
/** The name of the operation being executed. */
public static final AttributeKey<String> GRAPHQL_OPERATION_NAME =
stringKey("graphql.operation.name");
/** The type of the operation being executed. */
public static final AttributeKey<String> GRAPHQL_OPERATION_TYPE =
stringKey("graphql.operation.type");
// Enum definitions
/** Values for {@link #GRAPHQL_OPERATION_TYPE}. */
public static final class GraphqlOperationTypeIncubatingValues {
/** GraphQL query */
public static final String QUERY = "query";
/** GraphQL mutation */
public static final String MUTATION = "mutation";
/** GraphQL subscription */
public static final String SUBSCRIPTION = "subscription";
private GraphqlOperationTypeIncubatingValues() {}
}
private GraphqlIncubatingAttributes() {}
}