Skip to content

Commit bac23a8

Browse files
committed
Move version into package, add description
1 parent ffaadaf commit bac23a8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

appinsights/package.go

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Package appinsights provides an interface to submit telemetry to Application Insights.
2+
// See more at https://azure.microsoft.com/en-us/services/application-insights/
3+
package appinsights
4+
5+
const (
6+
sdkName = "go"
7+
Version = "0.3.0"
8+
)

appinsights/telemetrycontext.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (context *telemetryContext) loadDeviceContext() {
122122
}
123123

124124
func (context *telemetryContext) loadInternalContext() {
125-
context.tags[InternalSdkVersion] = "go:" + version
125+
context.tags[InternalSdkVersion] = sdkName + ":" + Version
126126
}
127127

128128
func (context *telemetryContext) Component() ComponentContext {

appinsights/version.go

-3
This file was deleted.

0 commit comments

Comments
 (0)