A lightweight & opening Go SDK for Cloud-Native and APM system
- EaseAgent SDK can collect distributed application tracing, which could be used in the APM system and improve the observability of a distributed system. for the tracing, EaseAgent SDK follows the Google Dapper paper and use zipkin-go core library.
- EaseAgent SDK also can work with Cloud-Native architecture. For example, it can help Service Mesh (especially for EaseMesh ) to do some control panel work.
- EaseAgent SDK also can work with MegaEase Cloud. For example, it can monitor for service by Go Docker APP.
- Safe to Go application/service.
- Lightweight and very low CPU, memory, and I/O resource usage.
- Highly extensible, users can easily do extensions through the api
- Design for Micro-Service architecture, collecting the data from a service perspective.
-
Easy to use. It is right out of the box for HTTP Server Tracing.
- Collecting Tracing Logs.
- HTTP Server
- HTTP Client
- Supplying the
health check
endpoint
- Decorate the Span API for Middleware
- Collecting Tracing Logs.
-
Data Reports
- Console Reporter.
- HTTP Reporter.
-
Standardization
- The tracing data format is fully compatible with the Zipkin data format.
go get github.com/megaease/easeagent-sdk-go
import (
"github.com/megaease/easeagent-sdk-go/agent"
"github.com/megaease/easeagent-sdk-go/plugins/zipkin"
)
// new tracing agent from yaml file and sets host and port of Span.localEndpoint
// By default, use yamlFile="" is use easemesh.DefaultSpec() and Console Reporter for tracing.
// By default, use localHostPort="" is not set host and port of Span.localEndpoint.
var easeagent, _ = agent.NewWithOptions(agent.WithYAML(os.Getenv("EASEAGENT_CONFIG"), ":8090"))
func main() {
// initialize router
router := http.NewServeMux()
http.ListenAndServe(":8090", easeagent.WrapUserHandler(router))
}
- Use SDK in MegaEase Cloud
- Get MegaEase Cloud Config. About MegaEase Cloud Config
- Decorate the Span. please use api:
zipkin.Tracing.StartMWSpan
andzipkin.Tracing.StartMWSpanFromCtx
for decorate Span.
- Github Issues
- Join Slack Workspace for requirement, issue and development.
- MegaEase on Twitter
If you have any questions, welcome to discuss them in our community. Welcome to join!
EaseAgent Go SDK is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.