public class ClientDetails extends Object
| Constructor and Description |
|---|
ClientDetails(String applicationForTracing,
String userNameForTracing,
String appendedClientVersionForTracing) |
| Modifier and Type | Method and Description |
|---|---|
static ClientDetails |
fromConnectorDetails(String name,
String version,
boolean sendUser,
String overrideUser,
String appName,
String appVersion,
org.apache.commons.lang3.tuple.Pair<String,String>... additionalFields)
Sets the application name and username for Kusto connectors.
|
String |
getApplicationForTracing() |
String |
getClientVersionForTracing() |
String |
getUserNameForTracing() |
public static final String NONE
public static ClientDetails fromConnectorDetails(String name, String version, boolean sendUser, @Nullable String overrideUser, @Nullable String appName, @Nullable String appVersion, org.apache.commons.lang3.tuple.Pair<String,String>... additionalFields)
name - The name of the connector/application.version - The version of the connector/application.sendUser - True if the user should be sent to Kusto, otherwise "[none]" will be sent.overrideUser - The user to send to Kusto, or null zvto use the current user.appName - The app hosting the connector, or null to use the current process name.appVersion - The version of the app hosting the connector, or null to use "[none]".additionalFields - Additional fields to trace.
Example: "Kusto.MyConnector:{1.0.0}|App.{connector}:{0.5.3}|Kusto.MyField:{MyValue}"public String getApplicationForTracing()
public String getUserNameForTracing()
public String getClientVersionForTracing()
Copyright © 2023. All rights reserved.