Skip to content

Commit

Permalink
* Format and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ag-ramachandran committed Oct 3, 2023
1 parent 3858294 commit 84dedb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/outputs/azure_data_explorer/azure_data_explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ func (*AzureDataExplorer) SampleConfig() string {
func (adx *AzureDataExplorer) Connect() error {
conn := kusto.NewConnectionStringBuilder(adx.Endpoint).WithDefaultAzureCredential()
// Since init is called before connect, we can set the connector details here including the type. This will be used for telemetry and tracing.
conn.SetConnectorDetails("Telegraf", "1.0.0", "", "", false, "", kusto.StringPair{Key: "MetricsGrouping", Value: adx.MetricsGrouping}, kusto.StringPair{Key: "IngestionType", Value: adx.IngestionType})
conn.SetConnectorDetails("Telegraf", "1.0.0", "", "", false, "",
kusto.StringPair{Key: "MetricsGrouping", Value: adx.MetricsGrouping},
kusto.StringPair{Key: "IngestionType", Value: adx.IngestionType})
client, err := kusto.New(conn)
if err != nil {
return err
Expand Down

0 comments on commit 84dedb5

Please sign in to comment.