Slackbot
10/20/2021, 8:50 AMItzik Lavon
10/20/2021, 8:50 AMDavide Fastoso
10/20/2021, 12:57 PMDavide Fastoso
10/20/2021, 12:59 PMgo
func myWonderfullHandler(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
defer func() {
// SETTING UP initTRACE somehow
}
Is it rightItzik Lavon
10/20/2021, 5:25 PMItzik Lavon
10/20/2021, 5:26 PMr.Use(otelmux.Middleware("my-server"))
this is the import:
"<http://go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux|go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux>"
Ankit Nayan
Ankit Nayan
Davide Fastoso
10/20/2021, 6:01 PMWithEndpoint()
but when i pass the references to it
http://collector.telemetry.svc.cluster.local:4317/
doesnt workAnkit Nayan
Ankit Nayan
collector
and namespace is telemetry
. Is it so?
If you used the helm chart and deployed it on namespace platform
the address would be <http://otel-collector.platform.svc.cluster.local:4317>
Davide Fastoso
10/21/2021, 7:39 AMserviceNameKey.String("collector")
And as WithEndpoint("<http://collector.telemetry.svc.cluster.local:4317/>")
Ankit Nayan
serviceNameKey
is the string that you want your application to be known by in UI...it has nothing to do with anything elseAnkit Nayan
Ankit Nayan
Ankit Nayan
<http://otel-collector>.<namespace>.svc.cluster.local:4317
Ankit Nayan
Davide Fastoso
10/21/2021, 7:56 AMAnkit Nayan