io.opentelemetry.maven.semconv.MavenOtelSemanticAttributes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-maven-extension Show documentation
Show all versions of opentelemetry-maven-extension Show documentation
Maven extension to observe Maven builds with distributed traces using OpenTelemetry SDK
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.maven.semconv;
import static io.opentelemetry.api.common.AttributeKey.stringArrayKey;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.semconv.resource.attributes.ResourceAttributes;
import java.util.List;
/**
* Semantic attributes for Maven executions.
*
* @see io.opentelemetry.api.common.Attributes
* @see io.opentelemetry.semconv.trace.attributes.SemanticAttributes
*/
public class MavenOtelSemanticAttributes {
/** See {@link ResourceAttributes#CONTAINER_IMAGE_NAME} */
public static final AttributeKey MAVEN_BUILD_CONTAINER_IMAGE_NAME =
stringKey("maven.build.container.image.name");
/** See {@link ResourceAttributes#CONTAINER_IMAGE_TAG} */
public static final AttributeKey> MAVEN_BUILD_CONTAINER_IMAGE_TAGS =
stringArrayKey("maven.build.container.image.tags");
public static final AttributeKey MAVEN_BUILD_CONTAINER_REGISTRY_URL =
stringKey("maven.build.container.registry.url");
public static final AttributeKey MAVEN_BUILD_REPOSITORY_ID =
stringKey("maven.build.repository.id");
public static final AttributeKey MAVEN_BUILD_REPOSITORY_URL =
stringKey("maven.build.repository.url");
public static final AttributeKey MAVEN_EXECUTION_GOAL = stringKey("maven.execution.goal");
public static final AttributeKey MAVEN_EXECUTION_ID = stringKey("maven.execution.id");
public static final AttributeKey MAVEN_EXECUTION_LIFECYCLE_PHASE =
stringKey("maven.execution.lifecyclePhase");
public static final AttributeKey MAVEN_PLUGIN_ARTIFACT_ID =
stringKey("maven.plugin.artifactId");
public static final AttributeKey MAVEN_PLUGIN_GROUP_ID =
stringKey("maven.plugin.groupId");
public static final AttributeKey MAVEN_PLUGIN_VERSION = stringKey("maven.plugin.version");
public static final AttributeKey MAVEN_PROJECT_ARTIFACT_ID =
stringKey("maven.project.artifactId");
public static final AttributeKey MAVEN_PROJECT_GROUP_ID =
stringKey("maven.project.groupId");
public static final AttributeKey MAVEN_PROJECT_VERSION =
stringKey("maven.project.version");
public static final String SERVICE_NAME_VALUE = "maven";
private MavenOtelSemanticAttributes() {}
}