This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ | |
| var span, ctx identifier | |
| @@ | |
| -span, ctx = opentracing.StartSpanFromContext(...) | |
| +ctx, span = trace.Tracer("").Start(...) | |
| @@ | |
| var ctx, span identifier | |
| @@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| go_client "github.com/grafana/grafana/pkg/api/docs/clients/go" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| graphite_cpu() { | |
| local date=$(date -v$1S +%s) | |
| echo "apps.prod.application1.requests.count $2 ${date}" | nc localhost 2103 | |
| echo "apps.prod.application2.requests.count $3 ${date}" | nc localhost 2103 | |
| echo "apps.prod.application3.requests.count $4 ${date}" | nc localhost 2103 | |
| echo "apps.test.application1.requests.count $5 ${date}" | nc localhost 2103 | |
| echo "apps.test.application2.requests.count $6 ${date}" | nc localhost 2103 |