-
Install Stackify Linux Agent.
-
Check that your setup meets our system requirements.
- Go Version 1.15
-
Install the Stackify Go APM agent using
go get-
Add stackify go apm to your
go.modrequire ( go.stackify.com/apm vx.x.x ... ) -
Install stackify go apm
$ go get go.stackify.com/apm
-
-
Update and insert the apm settings to your application.
package main import ( "context" "log" "go.stackify.com/apm" ) func main() { stackifyAPM, err := apm.NewStackifyAPM() if err != nil { log.Fatalf("failed to initialize stackifyapm: %v", err) } defer stackifyAPM.Shutdown() err = func(ctx context.Context) error { var span apm.Span ctx, span = stackifyAPM.Tracer.Start(ctx, "span1") defer span.End() return nil }(stackifyAPM.Context) if err != nil { panic(err) } } -
Customize Application Name and Environment configuration.
stackifyAPM, err := apm.NewStackifyAPM( apm.WithApplicationName("Go Application"), apm.WithEnvironmentName("Production"), )
-
Notifications
You must be signed in to change notification settings - Fork 2
License
stackify/stackify-go-apm
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published