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

com.wavefront.sdk.grpc.Constants Maven / Gradle / Ivy

The newest version!
package com.wavefront.sdk.grpc;

import io.grpc.Context;
import io.opentracing.Span;

/**
 * gRPC SDK related constants.
 *
 * @author Srujan Narkedamalli ([email protected]).
 */
public final class Constants {

  private Constants() {
  }

  /**
   * Tag key to define a  grpc service, which is the service defined in RPC IDL.
   */
  public static final String GRPC_SERVICE_TAG_KEY = "grpc.service";

  /**
   * Name of gRPC server component.
   */
  public static final String GRPC_SERVER_COMPONENT = "grpc-server";

  /**
   * Name of gRPC client component.
   */
  public static final String GRPC_CLIENT_COMPONENT = "grpc-client";

  /**
   * gRPC context key used for storing the active span.
   */
  public static final Context.Key GRPC_CONTEXT_SPAN_KEY = Context.key("opentracing-span-key");

  /**
   * Tag key to define gRPC method type.
   */
  public static final String GRPC_METHOD_TYPE_KEY = "grpc.method_type";

  /**
   * Tag key to define gRPC status.
   */
  public static final String GRPC_STATUS_KEY = "grpc.status";

  /**
   * Tag key to define gRPC method.
   */
  public static final String GRPC_METHOD_TAG_KEY = "grpc.method";

  /**
   * Tag key to define request bytes.
   */
  public static final String REQUEST_BYTES_TAG_KEY = "request.bytes";

  /**
   * Tag key to define response bytes.
   */
  public static final String RESPONSE_BYTES_TAG_KEY = "response.bytes";

  /**
   * Tag key to define request messages count.
   */
  public static final String REQUEST_MESSAGES_COUNT_TAG_KEY = "request.messages.count";

  /**
   * Tag key to define response messages count.
   */
  public static final String RESPONSE_MESSAGES_COUNT_TAG_KEY = "response.messages.count";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy