@@ -0,0 +1,2048 @@
+/*%0A * Copyright 2014-2018 Netflix, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.netflix.spectator.ipc;%0A%0A/**%0A * Headers in use at Netflix to relay information between the client and the server. This%0A * information provides additional context for logs and is used to tag the IPC metrics%0A * consistently between the client and the server.%0A */%0Apublic enum NetflixHeader %7B%0A%0A  /**%0A   * Server group name for the client or the server. It should follow the naming conventions%0A   * expected by Frigga. See %7B@link ServerGroup%7D for more information.%0A   */%0A  ASG,%0A%0A  /**%0A   * Availability zone of the client or server instance.%0A   */%0A  Zone,%0A%0A  /**%0A   * Route or route handler for a given path. It should have a fixed cardinality. For HTTP%0A   * this would need to come from the server so there is agreement and the client will report%0A   * the same value.%0A   */%0A  Endpoint,%0A%0A  /**%0A   * VIP that was used to lookup instances for a service when using a client side load balancer.%0A   * This should be set on the client request to the vip used for the lookup. In the case of NIWS,%0A   * that would be the VIP used for the DeploymentContextBasedVipAddresses. If multiple VIPs are%0A   * used, then the first VIP that caused a given server instance to be selected should be used.%0A   *%0A   * For server side load balancers the VIP header should be omitted.%0A   */%0A  Vip;%0A%0A  private final String headerName = %22Netflix-%22 + name();%0A%0A  /** Return the fully qualified header name. */%0A  public String headerName() %7B%0A    return headerName;%0A  %7D%0A%7D%0A

add constants for Netflix headers (#561)