io.opentelemetry.contrib.awsxray.AwsAttributeKeys Maven / Gradle / Ivy
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.contrib.awsxray;
import io.opentelemetry.api.common.AttributeKey;
/** Utility class holding attribute keys with special meaning to AWS components */
final class AwsAttributeKeys {
private AwsAttributeKeys() {}
static final AttributeKey AWS_SPAN_KIND = AttributeKey.stringKey("aws.span.kind");
static final AttributeKey AWS_LOCAL_SERVICE = AttributeKey.stringKey("aws.local.service");
static final AttributeKey AWS_LOCAL_OPERATION =
AttributeKey.stringKey("aws.local.operation");
static final AttributeKey AWS_REMOTE_SERVICE =
AttributeKey.stringKey("aws.remote.service");
static final AttributeKey AWS_REMOTE_OPERATION =
AttributeKey.stringKey("aws.remote.operation");
static final AttributeKey AWS_REMOTE_TARGET = AttributeKey.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 AWS_BUCKET_NAME = AttributeKey.stringKey("aws.bucket.name");
static final AttributeKey AWS_QUEUE_NAME = AttributeKey.stringKey("aws.queue.name");
static final AttributeKey AWS_STREAM_NAME = AttributeKey.stringKey("aws.stream.name");
static final AttributeKey AWS_TABLE_NAME = AttributeKey.stringKey("aws.table.name");
}