-
Notifications
You must be signed in to change notification settings - Fork 15
Adding Kusto Telemetry to ApplicationHealthLinux v2 #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
klugorosado
merged 33 commits into
feature/v2/bootstrapVMWatch
from
feature/v2/bootstrapVMWatch-Telemetry
May 2, 2024
Merged
Changes from 18 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
d3d369c
Adding internal/manifest package from Cross-Platform AppHealth Featur…
klugorosado 0b98aa5
Running go mod tidy and go mod vendor
klugorosado 799103a
- Add manifest.xml to Extension folder
klugorosado ff2cff0
Update Go version to 1.18 in Dockerfile
klugorosado 4a5e227
Add logging package with NopLogger implementation
klugorosado b6e0f87
Add telemetry package for logging events
klugorosado ce4fd93
- Add telemetry event Logging to main.go
klugorosado 4c3ac13
- Add new String() methods to vmWatchSignalFilters and vmWatchSetting…
klugorosado ec6369b
- Add telemetry event Logging to reportstatus.go
klugorosado a88017e
Add telemetry event Logging to health.go
klugorosado bb01892
Refactor install handler in main/cmds.go to use telemetry event logging
klugorosado 4c380dc
Refactor uninstall handler in main/cmds.go to use telemetry event log…
klugorosado 984882d
Refactor enable handler function in main/cmds.go to use telemetry eve…
klugorosado 9b53587
Refactor vmWatch.go to use telemetry event logging
klugorosado eda0265
Fix requestPath in extension-settings.json and updated 2 integration …
klugorosado b2f4f4f
ran go mod tidy && go mod vendor
klugorosado 8da2ef9
Update ExtensionManifest version to 2.0.9 on UT
klugorosado e6646aa
Refactor telemetry event sender to use EventLevel constants in main/t…
klugorosado b9bf83f
Refactor telemetry event sender to use EventTasks constants that matc…
klugorosado 687327f
Update logging messages in 7_vmwatch.bats
klugorosado 4cdbe4e
Moved telemetry.go to its package in internal/telemetry
klugorosado b030175
Update Go version to 1.22 in Dockerfile, go.yml, go.mod, and go.sum
klugorosado fb096c7
Update ExtensionManifest version to 2.0.9 on UT
klugorosado efb1fb9
Merge branch 'feature/v2/bootstrapVMWatch' into feature/v2/bootstrapV…
klugorosado 138a80c
Add NopLogger documentation to pkg/logging/logging.go
klugorosado 07b3877
Added Documentation to Telemetry Pkg
klugorosado b9584e9
-Added a Wrapper to HandlerEnviroment to add Additional functionality…
klugorosado f81e2e8
- Updated HandlerEnviroment String to use MarshallIndent Function.
klugorosado 4e119d3
- Updated vmWatchSetting String Func to use MarshallIdent
klugorosado 81e7d77
Update ExtensionManifest version to 2.0.10 on Failing UT
klugorosado 2594ef1
Merge remote-tracking branch 'origin/feature/v2/bootstrapVMWatch' int…
klugorosado 7c33d6c
removed duplicated UT
klugorosado 8b1512e
Removed String() func from VMWatchSignalFilters, publicSettings and p…
klugorosado File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| { | ||
| "recommendations": [ | ||
| "golang.go", | ||
| "ms-vscode-remote.remote-containers", | ||
| "ms-vscode-remote.remote-ssh" | ||
| "ms-vscode-remote.remote-ssh", | ||
| "github.copilot", | ||
| "ms-azuretools.vscode-docker", | ||
| "github.vscode-pull-request-github" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,32 @@ | ||
| module github.com/Azure/run-command-extension-linux | ||
| module github.com/Azure/applicationhealth-extension-linux | ||
|
|
||
| go 1.18 | ||
|
|
||
| require ( | ||
| github.com/Azure/azure-docker-extension v0.0.0-20160802215703-0dd2f199467d | ||
| github.com/Azure/azure-extension-platform v0.0.0-20240327184133-73b5b3b55955 | ||
| github.com/containerd/cgroups/v3 v3.0.2 | ||
| github.com/go-kit/kit v0.1.1-0.20160721083846-b076b44dbec2 | ||
| github.com/opencontainers/runtime-spec v1.0.2 | ||
| github.com/pkg/errors v0.7.1-0.20160627222352-a2d6902c6d2a | ||
| github.com/pkg/errors v0.9.1 | ||
| github.com/stretchr/testify v1.8.0 | ||
| github.com/xeipuuv/gojsonschema v0.0.0-20160623135812-c539bca196be | ||
| ) | ||
|
|
||
| require github.com/go-kit/log v0.2.0 | ||
|
|
||
| require ( | ||
| github.com/cilium/ebpf v0.9.1 // indirect | ||
| github.com/coreos/go-systemd/v22 v22.3.2 // indirect | ||
| github.com/davecgh/go-spew v1.1.1 // indirect | ||
| github.com/docker/go-units v0.4.0 // indirect | ||
| github.com/go-logfmt/logfmt v0.2.1-0.20160601130801-d4327190ff83 // indirect | ||
| github.com/go-stack/stack v1.5.2 // indirect | ||
| github.com/go-logfmt/logfmt v0.5.1 // indirect | ||
| github.com/godbus/dbus/v5 v5.0.4 // indirect | ||
| github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 // indirect | ||
| github.com/google/go-cmp v0.5.8 // indirect | ||
| github.com/pmezard/go-difflib v1.0.0 // indirect | ||
| github.com/sirupsen/logrus v1.9.0 // indirect | ||
| github.com/xeipuuv/gojsonpointer v0.0.0-20151027082146-e0fe6f683076 // indirect | ||
| github.com/xeipuuv/gojsonreference v0.0.0-20150808065054-e02fc20de94c // indirect | ||
| golang.org/x/sys v0.2.0 // indirect | ||
| golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
| google.golang.org/protobuf v1.27.1 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package handlerenv | ||
|
|
||
| import ( | ||
| "github.com/Azure/applicationhealth-extension-linux/internal/manifest" | ||
| "github.com/Azure/azure-extension-platform/pkg/handlerenv" | ||
| ) | ||
|
|
||
| type HandlerEnvironment = handlerenv.HandlerEnvironment | ||
|
|
||
| func GetHandlerEnviroment() (he *HandlerEnvironment, _ error) { | ||
| em, err := manifest.GetExtensionManifest() | ||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| return handlerenv.GetHandlerEnvironment(em.Name(), em.Version) | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.