io.opentelemetry.javaagent.instrumentation.vaadin.VaadinHandlerRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-javaagent-vaadin-14.2 Show documentation
Show all versions of opentelemetry-javaagent-vaadin-14.2 Show documentation
Instrumentation of Java libraries using OpenTelemetry.
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.vaadin;
import com.google.auto.value.AutoValue;
import io.opentelemetry.instrumentation.api.incubator.semconv.util.SpanNames;
@AutoValue
public abstract class VaadinHandlerRequest {
public static VaadinHandlerRequest create(Class> handlerClass, String methodName) {
return new AutoValue_VaadinHandlerRequest(handlerClass, methodName);
}
abstract Class> getHandlerClass();
abstract String getMethodName();
String getSpanName() {
return SpanNames.fromMethod(getHandlerClass(), getMethodName());
}
}