/skw-endpoint-tracer

simple skywalking endpoint dependency tracer

Primary LanguageGoApache License 2.0Apache-2.0

skw-endpoint-tracer

func main() {
	client.Path = "https://my-skywalking-server/graphql"
	client.Headers = map[string]string{
	}
	dur := client.Duration{Start: "2024-08-15", End: "2024-08-16"}
	mergedPrefix := client.MergePrefixMap{
		"myapp": {
			"/app/id/": "/app/id", // e.g., /app/id/1, /app/id/2 ...
		},
	}
	services := []string{
		"myapp",
	}
	routes := client.PullEndpointRoutes(services, dur, mergedPrefix)
	client.PrintEndpointRoutes(routes)
}