Create init method on provider interface
This commit is contained in:
parent
b2a57ca1f3
commit
027093a5a5
52 changed files with 2760 additions and 131 deletions
19
vendor/github.com/Microsoft/ApplicationInsights-Go/appinsights/configuration.go
generated
vendored
Normal file
19
vendor/github.com/Microsoft/ApplicationInsights-Go/appinsights/configuration.go
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
package appinsights
|
||||
|
||||
import "time"
|
||||
|
||||
type TelemetryConfiguration struct {
|
||||
InstrumentationKey string
|
||||
EndpointUrl string
|
||||
MaxBatchSize int
|
||||
MaxBatchInterval time.Duration
|
||||
}
|
||||
|
||||
func NewTelemetryConfiguration(instrumentationKey string) *TelemetryConfiguration {
|
||||
return &TelemetryConfiguration{
|
||||
InstrumentationKey: instrumentationKey,
|
||||
EndpointUrl: "https://dc.services.visualstudio.com/v2/track",
|
||||
MaxBatchSize: 1024,
|
||||
MaxBatchInterval: time.Duration(10) * time.Second,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue