io.opentelemetry.maven.handler.MojoGoalExecutionHandler 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.handler;
import io.opentelemetry.api.trace.SpanBuilder;
import io.opentelemetry.maven.MavenGoal;
import java.util.List;
import org.apache.maven.execution.ExecutionEvent;
public interface MojoGoalExecutionHandler {
default void enrichSpan(SpanBuilder spanBuilder, ExecutionEvent executionEvent) {}
List getSupportedGoals();
}