lab7: BROKER_URL из окружения, Redis operator для регрессии ACL, исправления тестов, no-new-privileges tempo-init; перенос исправлений lab6
This commit is contained in:
@@ -79,6 +79,10 @@ func Telemetry(next http.Handler) http.Handler {
|
||||
attribute.String("request_id", httputil.RequestIDFrom(r.Context())),
|
||||
))
|
||||
defer span.End()
|
||||
if sc := span.SpanContext(); sc.IsSampled() {
|
||||
// W3C Trace Context Level 2: клиент (и тест) получает ID трассы своего запроса.
|
||||
w.Header().Set("traceresponse", "00-"+sc.TraceID().String()+"-"+sc.SpanID().String()+"-01")
|
||||
}
|
||||
methodAttr := attribute.String("http.request.method", r.Method)
|
||||
inflight.Add(ctx, 1, metric.WithAttributes(methodAttr))
|
||||
defer inflight.Add(ctx, -1, metric.WithAttributes(methodAttr))
|
||||
|
||||
Reference in New Issue
Block a user