Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedricziel/go-instana
GoLang client library for Instana. - Generated from the public API spec. This is not an official product of Instana.
https://github.com/cedricziel/go-instana
go golang instana
Last synced: 11 days ago
JSON representation
GoLang client library for Instana. - Generated from the public API spec. This is not an official product of Instana.
- Host: GitHub
- URL: https://github.com/cedricziel/go-instana
- Owner: cedricziel
- Created: 2020-11-18T10:21:23.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-31T17:17:26.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T20:09:13.339Z (25 days ago)
- Topics: go, golang, instana
- Language: Go
- Homepage:
- Size: 655 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoLang client for Instana
Generated from the API specification at https://instana.github.io/openapi/
## Disclaimer
This is not an official product of Instana.
## Usage
```go
import "github.com/cedricziel/go-instana/instana"// readTags will read all available application monitoring tags along with their type and category
func readTags() {
configuration := instana.NewConfiguration()
configuration.Host = "tenant-unit.instana.io"
configuration.BasePath = "https://tenant-unit.instana.io"client := instana.NewAPIClient(configuration)
auth := context.WithValue(context.Background(), instana.ContextAPIKey, instana.APIKey{
Key: apiKey,
Prefix: "apiToken",
})tags, _, err := client.ApplicationCatalogApi.GetTagsForApplication(auth)
if err != nil {
fmt.Fatalf("Error calling the API, aborting.")
}for _, tag := range tags {
fmt.Printf("%s (%s): %s\n", tag.Category, tag.Type, tag.Name)
}
}
```## License
MIT