Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Instrument Azure Blob, Queue, and File Storage using Atatus Go Agent for Go. Trace storage access operations and correlate with application transactions for deeper observability.
go get go.atatus.com/agent go get go.atatus.com/agent/module/atazure
import ( "github.com/Azure/azure-storage-blob-go/azblob" "go.atatus.com/agent" "go.atatus.com/agent/module/atazure" ) func main() { // Initialize Atatus tracer with values from environment tracer := atatus.DefaultTracer tracer.Service.LicenseKey = os.Getenv("ATATUS_LICENSE_KEY") tracer.Service.AppName = os.Getenv("ATATUS_APP_NAME") tracer.Service.Tracing = os.Getenv("ATATUS_TRACING") tracer.Service.Analytics = os.Getenv("ATATUS_ANALYTICS") p := azblob.NewPipeline(azblob.NewAnonymousCredential(), po) p = atazure.WrapPipeline(p) u, err := url.Parse("https://my-account.blob.core.windows.net") serviceURL := azblob.NewServiceURL(*u, p) containerURL := serviceURL.NewContainerURL("mycontainer") blobURL := containerURL.NewBlobURL("readme.txt") // Use the blobURL to interact with Blob Storage ... }
go mod tidy
go run main.go