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

com.microsoft.kiota.http.ObservabilityOptions Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.microsoft.kiota.http;

import com.microsoft.kiota.RequestOption;

import jakarta.annotation.Nonnull;

/** Holds the tracing, metrics and logging configuration for the request adapter */
public class ObservabilityOptions implements RequestOption {
    /** Creates a new instance of the observability options */
    public ObservabilityOptions() {}

    private boolean includeEUIIAttributes;

    /**
     * Gets whether to include attributes which could contains EUII information like URLs
     * @return whether to include EUII attributes
     */
    public boolean getIncludeEUIIAttributes() {
        return includeEUIIAttributes;
    }

    /**
     * Sets whether to include attributes which could contains EUII information like URLs
     * @param includeEUIIAttributes whether to include EUII attributes
     */
    public void setIncludeEUIIAttributes(boolean includeEUIIAttributes) {
        this.includeEUIIAttributes = includeEUIIAttributes;
    }

    /** {@inheritDoc} */
    @Override
    @SuppressWarnings("unchecked")
    @Nonnull public  Class getType() {
        return (Class) ObservabilityOptions.class;
    }

    /**
     * Gets the instrumentation name to use for tracing
     * @return the instrumentation name to use for tracing
     */
    @Nonnull public String getTracerInstrumentationName() {
        return "com.microsoft.kiota:microsoft-kiota-http-okHttp";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy