forked from open-telemetry/opentelemetry-java-contrib
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAwsAttributeKeys.java
More file actions
38 lines (25 loc) · 1.54 KB
/
AwsAttributeKeys.java
File metadata and controls
38 lines (25 loc) · 1.54 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
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.contrib.awsxray;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
/** Utility class holding attribute keys with special meaning to AWS components */
final class AwsAttributeKeys {
static final AttributeKey<String> AWS_SPAN_KIND = stringKey("aws.span.kind");
static final AttributeKey<String> AWS_LOCAL_SERVICE = stringKey("aws.local.service");
static final AttributeKey<String> AWS_LOCAL_OPERATION = stringKey("aws.local.operation");
static final AttributeKey<String> AWS_REMOTE_SERVICE = stringKey("aws.remote.service");
static final AttributeKey<String> AWS_REMOTE_OPERATION = stringKey("aws.remote.operation");
static final AttributeKey<String> AWS_REMOTE_TARGET = stringKey("aws.remote.target");
// use the same AWS Resource attribute name defined by OTel java auto-instr for aws_sdk_v_1_1
// TODO: all AWS specific attributes should be defined in semconv package and reused cross all
// otel packages. Related sim -
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/8710
static final AttributeKey<String> AWS_BUCKET_NAME = stringKey("aws.bucket.name");
static final AttributeKey<String> AWS_QUEUE_NAME = stringKey("aws.queue.name");
static final AttributeKey<String> AWS_STREAM_NAME = stringKey("aws.stream.name");
static final AttributeKey<String> AWS_TABLE_NAME = stringKey("aws.table.name");
private AwsAttributeKeys() {}
}