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

com.azure.spring.cloud.config.RequestTracingConstants Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.cloud.config;

/**
 * Request Tracing values used to check
 */
public enum RequestTracingConstants {

    /**
     * Constant for Disabling Tracing
     */
    REQUEST_TRACING_DISABLED_ENVIRONMENT_VARIABLE("AZURE_APP_CONFIGURATION_TRACING_DISABLED"),
    
    /**
     * Constant for checking for use in Azure Functions
     */
    AZURE_FUNCTIONS_ENVIRONMENT_VARIABLE("FUNCTIONS_EXTENSION_VERSION"),
    
    /**
     * Constant for checking for use in Azure Web App
     */
    AZURE_WEB_APP_ENVIRONMENT_VARIABLE("WEBSITE_SITE_NAME"),
    
    /**
     * Constant for checking for use in Kubernetes
     */
    KUBERNETES_ENVIRONMENT_VARIABLE("KUBERNETES_PORT"),
    
    /**
     * Constant for tracing the type of request
     */
    REQUEST_TYPE_KEY("RequestType"),
    
    /**
     * Constant for tracing the type of host
     */
    HOST_TYPE_KEY("Host"),
    
    /**
     * Constant for http Header Correlation Context
     */
    CORRELATION_CONTEXT_HEADER("Correlation-Context");

    private final String text;

    /**
     * @param text Request Tracing Constant Type
     */
    RequestTracingConstants(final String text) {
        this.text = text;
    }

    /* (non-Javadoc)
     * @see java.lang.Enum#toString()
     */
    @Override
    public String toString() {
        return text;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy