Skip to content

Commit

Permalink
Move version into package, add description
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjordanmsft committed Aug 26, 2017
1 parent ffaadaf commit bac23a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 8 additions & 0 deletions appinsights/package.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Package appinsights provides an interface to submit telemetry to Application Insights.
// See more at https://azure.microsoft.com/en-us/services/application-insights/
package appinsights

const (
sdkName = "go"
Version = "0.3.0"
)
2 changes: 1 addition & 1 deletion appinsights/telemetrycontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (context *telemetryContext) loadDeviceContext() {
}

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

func (context *telemetryContext) Component() ComponentContext {
Expand Down
3 changes: 0 additions & 3 deletions appinsights/version.go

This file was deleted.

0 comments on commit bac23a8

Please sign in to comment.