io.opentelemetry.javaagent.instrumentation.vaadin.VaadinSingletons 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.vaadin.flow.server.communication.rpc.RpcInvocationHandler;
import io.opentelemetry.api.GlobalOpenTelemetry;
import io.opentelemetry.context.ContextKey;
import io.opentelemetry.instrumentation.api.incubator.semconv.code.CodeAttributesExtractor;
import io.opentelemetry.instrumentation.api.incubator.semconv.code.CodeSpanNameExtractor;
import io.opentelemetry.instrumentation.api.incubator.semconv.util.SpanNames;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.javaagent.bootstrap.internal.ExperimentalConfig;
public class VaadinSingletons {
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.vaadin-14.2";
static final ContextKey SERVICE_CONTEXT_KEY =
ContextKey.named("opentelemetry-vaadin-service-context-key");
static final ContextKey