Description
Description
I'm testing 3.0.0-rc2 with a particular focus on the open telemetry support. So far, I haven't found a way to either keep it quiet or, what I really want, is to send data to azure application insights.
There are a couple of issues already open, such as: #4270. When I set OTEL_TRACES_EXPORTER="none"
, it logs what appears to be what it would have sent to stdout. Something like this:
{"Name":"GET /","SpanContext":{"TraceID":"fc40f79e91deec064ff67d4e6ff3faac","SpanID":"a27c70eade8c29f7","TraceFlags":"01","TraceState":"","Remote":false},"Parent":{"TraceID":"00000000000000000000000000000000","SpanID":"0000000000000000","TraceFlags":"00","TraceState":"","Remote":false},"SpanKind":2,"StartTime":"2024-12-22T17:08:06.958450227Z","EndTime":"2024-12-22T17:08:06.95849093Z","Attributes":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.scheme","Value":{"Type":"STRING","Value":"http"}},{"Key":"net.host.name","Value":{"Type":"STRING","Value":"192.168.109.4"}},{"Key":"net.host.port","Value":{"Type":"INT64","Value":5000}},{"Key":"net.sock.peer.addr","Value":{"Type":"STRING","Value":"192.168.4.32"}},{"Key":"net.sock.peer.port","Value":{"Type":"INT64","Value":38108}},{"Key":"user_agent.original","Value":{"Type":"STRING","Value":"kube-probe/1.30"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/"}},{"Key":"net.protocol.version","Value":{"Type":"STRING","Value":"1.1"}},{"Key":"http.status_code","Value":{"Type":"INT64","Value":200}}],"Events":null,"Links":null,"Status":{"Code":"Unset","Description":""},"DroppedAttributes":0,"DroppedEvents":0,"DroppedLinks":0,"ChildSpanCount":0,"Resource":[{"Key":"service.name","Value":{"Type":"STRING","Value":"distribution"}},{"Key":"service.version","Value":{"Type":"STRING","Value":"3.0.0-rc.2"}}],"InstrumentationScope":{"Name":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","Version":"0.57.0","SchemaURL":"","Attributes":null},"InstrumentationLibrary":{"Name":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp","Version":"0.57.0","SchemaURL":"","Attributes":null}}
I can't seem to find a valid value for an azure connection. I believe this needs to be a provider, which isn't included? Not sure.
Also, that log, and any access logs also includes any health check from my kubernetes cluster. It'd be really great if you were able to provide some kind of configuration so I could filter that out. It'd be extra nice if you included a specific health endpoint (like /health
) rather than me checking for /, although maybe there's a better way for this in general.
I tried setting OTEL_SDK_DISABLED="true"
which is mentioned in the linked issue, but that doesn't seem to do anything, it has the same logs trying to send telemetry.