Skip to content

stackify/stackify-go-apm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stackify Go APM

Installation Guide

Standalone setup

  1. Install Stackify Linux Agent.

  2. Check that your setup meets our system requirements.

    • Go Version 1.15
  3. Install the Stackify Go APM agent using go get

    • Add stackify go apm to your go.mod

      require (
          go.stackify.com/apm vx.x.x
          ...
      )
      
    • Install stackify go apm

      $ go get go.stackify.com/apm
      
  4. 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)
        }
    
    }
    
  5. Customize Application Name and Environment configuration.

    stackifyAPM, err := apm.NewStackifyAPM(
        apm.WithApplicationName("Go Application"),
        apm.WithEnvironmentName("Production"),
    )
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages