All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.javaagent.instrumentation.vaadin.VaadinServiceRequest Maven / Gradle / Ivy

There is a newer version: 2.8.0-alpha
Show newest version
/*
 * 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 VaadinServiceRequest {

  public static VaadinServiceRequest create(Class serviceClass, String methodName) {
    return new AutoValue_VaadinServiceRequest(serviceClass, methodName);
  }

  abstract Class getServiceClass();

  abstract String getMethodName();

  String getSpanName() {
    return SpanNames.fromMethod(getServiceClass(), getMethodName());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy