com.microsoft.kiota.http.ObservabilityOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft-kiota-http-okHttp Show documentation
Show all versions of microsoft-kiota-http-okHttp Show documentation
Microsoft Kiota-Http with okHttp
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";
}
}