diff --git a/CHANGELOG.md b/CHANGELOG.md index abd8bcc7927..fd1e3a5a429 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,7 @@ * [BUGFIX] Compactor: Fix spurious `bucket operation fail after retries` error logs emitted during partial block cleanup. #7749 * [BUGFIX] Alertmanager: Fix panic in `validateAlertmanagerConfig` when receiver config traversal encounters nil interface values. #7751 * [BUGFIX] Parquet Converter: Fix `auto_forget_delay` having no effect. The ring lifecycler was created without the auto-forget delegate, so unhealthy instances were never automatically removed from the ring. #7752 +* [BUGFIX] Ingester: Fix tracing of write requests when `-distributor.use-stream-push` is enabled. Every push received over a `PushStream` connection was attached to the span of the connection itself, gluing all of them into a single trace growing for as long as the connection lived. #7753 ## 1.21.1 2026-06-04 diff --git a/pkg/cortexpb/carrier.go b/pkg/cortexpb/carrier.go new file mode 100644 index 00000000000..33cc9c3f7f1 --- /dev/null +++ b/pkg/cortexpb/carrier.go @@ -0,0 +1,49 @@ +package cortexpb + +import ( + "github.com/opentracing/opentracing-go" +) + +// StreamWriteRequestCarrier is used to transfer trace +// information from/to a StreamWriteRequest. +type StreamWriteRequestCarrier StreamWriteRequest + +func (c *StreamWriteRequestCarrier) Set(key, val string) { + c.TraceContext = append(c.TraceContext, &Header{ + Key: key, + Values: []string{val}, + }) +} + +func (c *StreamWriteRequestCarrier) ForeachKey(handler func(key, val string) error) error { + for _, h := range c.TraceContext { + for _, v := range h.Values { + if err := handler(h.Key, v); err != nil { + return err + } + } + } + return nil +} + +// InjectSpanIntoStreamWriteRequest makes req carry the trace context of span. +func InjectSpanIntoStreamWriteRequest(tracer opentracing.Tracer, span opentracing.Span, req *StreamWriteRequest) error { + if tracer == nil || span == nil { + return nil + } + + return tracer.Inject(span.Context(), opentracing.HTTPHeaders, (*StreamWriteRequestCarrier)(req)) +} + +// GetParentSpanForStreamWriteRequest returns the span context req carries. +func GetParentSpanForStreamWriteRequest(tracer opentracing.Tracer, req *StreamWriteRequest) (opentracing.SpanContext, error) { + if tracer == nil || len(req.TraceContext) == 0 { + return nil, nil + } + + extracted, err := tracer.Extract(opentracing.HTTPHeaders, (*StreamWriteRequestCarrier)(req)) + if err == opentracing.ErrSpanContextNotFound { + err = nil + } + return extracted, err +} diff --git a/pkg/cortexpb/carrier_test.go b/pkg/cortexpb/carrier_test.go new file mode 100644 index 00000000000..8014445c8da --- /dev/null +++ b/pkg/cortexpb/carrier_test.go @@ -0,0 +1,26 @@ +package cortexpb + +import ( + "testing" + + "github.com/opentracing/opentracing-go/mocktracer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestStreamWriteRequestCarrier_RoundTrip(t *testing.T) { + tracer := mocktracer.New() + span := tracer.StartSpan("Distributor.Push") + defer span.Finish() + + req := &StreamWriteRequest{TenantID: "user-1"} + require.NoError(t, InjectSpanIntoStreamWriteRequest(tracer, span, req)) + require.NotEmpty(t, req.TraceContext, "the trace context must be carried by the message itself") + + extracted, err := GetParentSpanForStreamWriteRequest(tracer, req) + require.NoError(t, err) + require.NotNil(t, extracted) + + assert.Equal(t, span.Context().(mocktracer.MockSpanContext).TraceID, extracted.(mocktracer.MockSpanContext).TraceID) + assert.Equal(t, span.Context().(mocktracer.MockSpanContext).SpanID, extracted.(mocktracer.MockSpanContext).SpanID) +} diff --git a/pkg/cortexpb/cortex.pb.go b/pkg/cortexpb/cortex.pb.go index 88f24f406af..3bef4432773 100644 --- a/pkg/cortexpb/cortex.pb.go +++ b/pkg/cortexpb/cortex.pb.go @@ -124,7 +124,7 @@ var MetricMetadata_MetricType_value = map[string]int32{ } func (MetricMetadata_MetricType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{11, 0} + return fileDescriptor_893a47d0a749d749, []int{12, 0} } type Histogram_ResetHint int32 @@ -151,7 +151,7 @@ var Histogram_ResetHint_value = map[string]int32{ } func (Histogram_ResetHint) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{14, 0} + return fileDescriptor_893a47d0a749d749, []int{15, 0} } func (m *MessageWithBufRef) Reset() { *m = MessageWithBufRef{} } @@ -556,16 +556,69 @@ func (m *MetadataV2) GetUnitRef() uint32 { return 0 } +type Header struct { + Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` + Values []string `protobuf:"bytes,2,rep,name=Values,proto3" json:"Values,omitempty"` +} + +func (m *Header) Reset() { *m = Header{} } +func (*Header) ProtoMessage() {} +func (*Header) Descriptor() ([]byte, []int) { + return fileDescriptor_893a47d0a749d749, []int{6} +} +func (m *Header) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Header.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Header.Merge(m, src) +} +func (m *Header) XXX_Size() int { + return m.Size() +} +func (m *Header) XXX_DiscardUnknown() { + xxx_messageInfo_Header.DiscardUnknown(m) +} + +var xxx_messageInfo_Header proto.InternalMessageInfo + +func (m *Header) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Header) GetValues() []string { + if m != nil { + return m.Values + } + return nil +} + type StreamWriteRequest struct { - TenantID string `protobuf:"bytes,1,opt,name=TenantID,proto3" json:"TenantID,omitempty"` - Request *WriteRequest `protobuf:"bytes,2,opt,name=Request,proto3" json:"Request,omitempty"` + TenantID string `protobuf:"bytes,1,opt,name=TenantID,proto3" json:"TenantID,omitempty"` + Request *WriteRequest `protobuf:"bytes,2,opt,name=Request,proto3" json:"Request,omitempty"` + // TraceContext carries the tracing headers of the write request this message belongs to. + TraceContext []*Header `protobuf:"bytes,3,rep,name=TraceContext,proto3" json:"TraceContext,omitempty"` MessageWithBufRef `protobuf:"bytes,1000,opt,name=Ref,proto3,embedded=Ref,customtype=MessageWithBufRef" json:"Ref"` } func (m *StreamWriteRequest) Reset() { *m = StreamWriteRequest{} } func (*StreamWriteRequest) ProtoMessage() {} func (*StreamWriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{6} + return fileDescriptor_893a47d0a749d749, []int{7} } func (m *StreamWriteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -608,6 +661,13 @@ func (m *StreamWriteRequest) GetRequest() *WriteRequest { return nil } +func (m *StreamWriteRequest) GetTraceContext() []*Header { + if m != nil { + return m.TraceContext + } + return nil +} + type WriteResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` @@ -622,7 +682,7 @@ type WriteResponse struct { func (m *WriteResponse) Reset() { *m = WriteResponse{} } func (*WriteResponse) ProtoMessage() {} func (*WriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{7} + return fileDescriptor_893a47d0a749d749, []int{8} } func (m *WriteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -697,7 +757,7 @@ type TimeSeries struct { func (m *TimeSeries) Reset() { *m = TimeSeries{} } func (*TimeSeries) ProtoMessage() {} func (*TimeSeries) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{8} + return fileDescriptor_893a47d0a749d749, []int{9} } func (m *TimeSeries) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -748,7 +808,7 @@ type LabelPair struct { func (m *LabelPair) Reset() { *m = LabelPair{} } func (*LabelPair) ProtoMessage() {} func (*LabelPair) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{9} + return fileDescriptor_893a47d0a749d749, []int{10} } func (m *LabelPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -800,7 +860,7 @@ type Sample struct { func (m *Sample) Reset() { *m = Sample{} } func (*Sample) ProtoMessage() {} func (*Sample) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{10} + return fileDescriptor_893a47d0a749d749, []int{11} } func (m *Sample) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -860,7 +920,7 @@ type MetricMetadata struct { func (m *MetricMetadata) Reset() { *m = MetricMetadata{} } func (*MetricMetadata) ProtoMessage() {} func (*MetricMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{11} + return fileDescriptor_893a47d0a749d749, []int{12} } func (m *MetricMetadata) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -924,7 +984,7 @@ type Metric struct { func (m *Metric) Reset() { *m = Metric{} } func (*Metric) ProtoMessage() {} func (*Metric) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{12} + return fileDescriptor_893a47d0a749d749, []int{13} } func (m *Metric) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -963,7 +1023,7 @@ type Exemplar struct { func (m *Exemplar) Reset() { *m = Exemplar{} } func (*Exemplar) ProtoMessage() {} func (*Exemplar) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{13} + return fileDescriptor_893a47d0a749d749, []int{14} } func (m *Exemplar) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1085,7 +1145,7 @@ type Histogram struct { func (m *Histogram) Reset() { *m = Histogram{} } func (*Histogram) ProtoMessage() {} func (*Histogram) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{14} + return fileDescriptor_893a47d0a749d749, []int{15} } func (m *Histogram) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1300,7 +1360,7 @@ type BucketSpan struct { func (m *BucketSpan) Reset() { *m = BucketSpan{} } func (*BucketSpan) ProtoMessage() {} func (*BucketSpan) Descriptor() ([]byte, []int) { - return fileDescriptor_893a47d0a749d749, []int{15} + return fileDescriptor_893a47d0a749d749, []int{16} } func (m *BucketSpan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1354,6 +1414,7 @@ func init() { proto.RegisterType((*TimeSeriesV2)(nil), "cortexpb.TimeSeriesV2") proto.RegisterType((*ExemplarV2)(nil), "cortexpb.ExemplarV2") proto.RegisterType((*MetadataV2)(nil), "cortexpb.MetadataV2") + proto.RegisterType((*Header)(nil), "cortexpb.Header") proto.RegisterType((*StreamWriteRequest)(nil), "cortexpb.StreamWriteRequest") proto.RegisterType((*WriteResponse)(nil), "cortexpb.WriteResponse") proto.RegisterType((*TimeSeries)(nil), "cortexpb.TimeSeries") @@ -1369,104 +1430,108 @@ func init() { func init() { proto.RegisterFile("cortex.proto", fileDescriptor_893a47d0a749d749) } var fileDescriptor_893a47d0a749d749 = []byte{ - // 1552 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x3d, 0x6f, 0x1b, 0x47, - 0x1a, 0xe6, 0xf2, 0x9b, 0x2f, 0x3f, 0xbc, 0x1a, 0xd3, 0xf6, 0x4a, 0xb6, 0x97, 0x32, 0x8d, 0xbb, - 0x13, 0x7c, 0x86, 0xce, 0x90, 0x71, 0xbe, 0x83, 0x61, 0x1c, 0x40, 0xca, 0x94, 0x45, 0xd8, 0x24, - 0x85, 0x21, 0x25, 0xc1, 0xd7, 0x2c, 0x56, 0xe4, 0x50, 0x5c, 0x98, 0xcb, 0xdd, 0xec, 0x0c, 0x0d, - 0x2b, 0x55, 0xaa, 0xc0, 0xe9, 0xd2, 0xa4, 0x49, 0x17, 0xb8, 0x49, 0x9b, 0x3a, 0x7f, 0xc0, 0x5d, - 0xd4, 0xc5, 0x30, 0x10, 0x21, 0x96, 0x1b, 0x27, 0x95, 0x7f, 0x42, 0x30, 0xb3, 0x9f, 0x14, 0x25, - 0x38, 0x48, 0x5c, 0xa4, 0xdb, 0x79, 0x9e, 0x77, 0x66, 0x9e, 0x7d, 0x3f, 0x9e, 0x25, 0xa1, 0xd0, - 0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x70, 0x86, 0x8b, 0xdd, - 0x85, 0x5c, 0xa0, 0x66, 0xd6, 0x22, 0x32, 0x90, 0x78, 0xdc, 0xe8, 0xca, 0x12, 0x4a, 0x43, 0xbc, - 0xdd, 0x91, 0xe3, 0xa1, 0x4d, 0x24, 0x96, 0x92, 0xcf, 0x5f, 0xa8, 0x52, 0x3d, 0x03, 0x29, 0x91, - 0x8f, 0x7a, 0x01, 0x20, 0x6c, 0xa7, 0xea, 0x3d, 0x80, 0x30, 0xf7, 0xbc, 0xa3, 0xad, 0xe1, 0x90, - 0x12, 0x77, 0x44, 0x16, 0xb0, 0xb7, 0xe2, 0xf8, 0x98, 0x4c, 0xf6, 0xd9, 0x48, 0x4c, 0x46, 0x11, - 0x7b, 0xab, 0x1b, 0x15, 0x80, 0xf0, 0x7f, 0x00, 0x17, 0x51, 0xdb, 0x6a, 0xca, 0x31, 0x6e, 0x34, - 0x78, 0xfb, 0x51, 0x43, 0x96, 0xea, 0xff, 0x3b, 0x7c, 0xa3, 0xc6, 0x5e, 0xbd, 0x51, 0x63, 0xef, - 0xdf, 0xa8, 0xd2, 0x67, 0xc7, 0xaa, 0xf4, 0xed, 0xb1, 0x2a, 0xbd, 0x3c, 0x56, 0xa5, 0xc3, 0x63, - 0x55, 0xfa, 0xf9, 0x58, 0x95, 0xde, 0x1d, 0xab, 0xb1, 0xf7, 0xc7, 0xaa, 0xf4, 0xe5, 0x5b, 0x35, - 0x76, 0xf8, 0x56, 0x8d, 0xbd, 0x7a, 0xab, 0xc6, 0xfe, 0x1f, 0xfc, 0x81, 0xdd, 0x4b, 0x8b, 0x7f, - 0xac, 0xb7, 0x7f, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x99, 0x5c, 0xe6, 0x17, 0xe1, 0x0e, 0x00, 0x00, + // 1603 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcb, 0x8e, 0x1b, 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0x31, 0xff, 0x5c, 0x84, 0x76, + 0xbe, 0x16, 0xa7, 0x07, 0x48, 0x87, 0x5a, 0x74, 0xee, 0x3e, 0xf0, 0x57, 0x91, 0x5e, 0xde, 0x2b, + 0xed, 0xab, 0x38, 0x31, 0x91, 0xb5, 0x51, 0xa7, 0x8a, 0xc8, 0xd4, 0xfb, 0xaf, 0xaa, 0xd3, 0xe9, + 0x41, 0xff, 0xc3, 0xb8, 0x52, 0x9d, 0xed, 0x4a, 0x9d, 0x1e, 0xbc, 0xa6, 0x56, 0xd5, 0xff, 0xa0, + 0x56, 0xff, 0x4f, 0xf9, 0x36, 0xff, 0x52, 0x84, 0x66, 0xfe, 0xab, 0x51, 0x17, 0x1a, 0x82, 0x58, + 0x64, 0x87, 0x74, 0x21, 0x5b, 0xb9, 0x85, 0x41, 0xba, 0x30, 0x5d, 0x44, 0xe8, 0x33, 0xa8, 0x45, + 0xc4, 0x0d, 0x56, 0x34, 0xd2, 0x8b, 0x22, 0x7f, 0x5a, 0xee, 0x6b, 0x05, 0x20, 0x3a, 0xac, 0x80, + 0x93, 0x30, 0x34, 0x02, 0x58, 0x3a, 0x11, 0xf3, 0xcf, 0x42, 0xe2, 0x46, 0x71, 0x7b, 0xbe, 0x9b, + 0x6d, 0x3a, 0x4a, 0xb0, 0xbe, 0x1e, 0x67, 0x5c, 0xbb, 0x17, 0x92, 0x20, 0xa0, 0xf3, 0x14, 0xc1, + 0xb9, 0x03, 0xd0, 0xcf, 0x40, 0xa5, 0x8f, 0xa8, 0x1b, 0xac, 0x48, 0x28, 0xeb, 0xbb, 0x31, 0x6a, + 0x83, 0x18, 0x3a, 0x3d, 0x88, 0x69, 0x64, 0xc1, 0xe8, 0x8b, 0xdc, 0x94, 0x54, 0x44, 0xfe, 0x3a, + 0x1b, 0x53, 0x22, 0x90, 0x74, 0x63, 0x36, 0x21, 0x3f, 0x84, 0x9d, 0x59, 0x48, 0x09, 0xa3, 0x73, + 0x5b, 0x54, 0x9d, 0x11, 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26, 0x40, 0xd6, 0x4e, 0xe6, 0x4d, 0x80, 0x2c, 0xf7, 0xbc, 0xa3, 0xfd, 0xc5, + 0x22, 0xa2, 0x72, 0x44, 0x76, 0x70, 0x6c, 0x71, 0xff, 0x8a, 0x7a, 0x67, 0x6c, 0x29, 0x26, 0xa3, + 0x85, 0x63, 0xeb, 0x93, 0x2e, 0x40, 0xf6, 0x8f, 0x83, 0x93, 0xe8, 0x1d, 0x0f, 0xb5, 0x02, 0x17, + 0x1a, 0x7c, 0xf2, 0xe5, 0x40, 0x53, 0xfa, 0x3f, 0x7f, 0xf2, 0xd4, 0x28, 0x7c, 0xfb, 0xd4, 0x28, + 0xbc, 0x78, 0x6a, 0x28, 0xbf, 0xbe, 0x34, 0x94, 0x3f, 0x5d, 0x1a, 0xca, 0xe3, 0x4b, 0x43, 0x79, + 0x72, 0x69, 0x28, 0x7f, 0xbf, 0x34, 0x94, 0xe7, 0x97, 0x46, 0xe1, 0xc5, 0xa5, 0xa1, 0xfc, 0xee, + 0x99, 0x51, 0x78, 0xf2, 0xcc, 0x28, 0x7c, 0xfb, 0xcc, 0x28, 0xfc, 0x22, 0xfd, 0xab, 0xfc, 0xa0, + 0x2a, 0xfe, 0x1b, 0x7f, 0xfe, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0xa4, 0x84, 0x99, 0x4b, + 0x0f, 0x00, 0x00, } func (x SourceEnum) String() string { @@ -1737,6 +1802,38 @@ func (this *MetadataV2) Equal(that interface{}) bool { } return true } +func (this *Header) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Header) + if !ok { + that2, ok := that.(Header) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Key != that1.Key { + return false + } + if len(this.Values) != len(that1.Values) { + return false + } + for i := range this.Values { + if this.Values[i] != that1.Values[i] { + return false + } + } + return true +} func (this *StreamWriteRequest) Equal(that interface{}) bool { if that == nil { return this == nil @@ -1762,6 +1859,14 @@ func (this *StreamWriteRequest) Equal(that interface{}) bool { if !this.Request.Equal(that1.Request) { return false } + if len(this.TraceContext) != len(that1.TraceContext) { + return false + } + for i := range this.TraceContext { + if !this.TraceContext[i].Equal(that1.TraceContext[i]) { + return false + } + } if !this.MessageWithBufRef.Equal(that1.MessageWithBufRef) { return false } @@ -2337,16 +2442,30 @@ func (this *MetadataV2) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *Header) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cortexpb.Header{") + s = append(s, "Key: "+fmt.Sprintf("%#v", this.Key)+",\n") + s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} func (this *StreamWriteRequest) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 7) + s := make([]string, 0, 8) s = append(s, "&cortexpb.StreamWriteRequest{") s = append(s, "TenantID: "+fmt.Sprintf("%#v", this.TenantID)+",\n") if this.Request != nil { s = append(s, "Request: "+fmt.Sprintf("%#v", this.Request)+",\n") } + if this.TraceContext != nil { + s = append(s, "TraceContext: "+fmt.Sprintf("%#v", this.TraceContext)+",\n") + } s = append(s, "MessageWithBufRef: "+fmt.Sprintf("%#v", this.MessageWithBufRef)+",\n") s = append(s, "}") return strings.Join(s, "") @@ -2917,6 +3036,45 @@ func (m *MetadataV2) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Header) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Header) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Values) > 0 { + for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Values[iNdEx]) + copy(dAtA[i:], m.Values[iNdEx]) + i = encodeVarintCortex(dAtA, i, uint64(len(m.Values[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintCortex(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *StreamWriteRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2949,6 +3107,20 @@ func (m *StreamWriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x3e i-- dAtA[i] = 0xc2 + if len(m.TraceContext) > 0 { + for iNdEx := len(m.TraceContext) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TraceContext[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCortex(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } if m.Request != nil { { size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) @@ -3722,6 +3894,25 @@ func (m *MetadataV2) Size() (n int) { return n } +func (m *Header) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovCortex(uint64(l)) + } + if len(m.Values) > 0 { + for _, s := range m.Values { + l = len(s) + n += 1 + l + sovCortex(uint64(l)) + } + } + return n +} + func (m *StreamWriteRequest) Size() (n int) { if m == nil { return 0 @@ -3736,6 +3927,12 @@ func (m *StreamWriteRequest) Size() (n int) { l = m.Request.Size() n += 1 + l + sovCortex(uint64(l)) } + if len(m.TraceContext) > 0 { + for _, e := range m.TraceContext { + l = e.Size() + n += 1 + l + sovCortex(uint64(l)) + } + } l = m.MessageWithBufRef.Size() n += 2 + l + sovCortex(uint64(l)) return n @@ -4111,13 +4308,30 @@ func (this *MetadataV2) String() string { }, "") return s } +func (this *Header) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Header{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} func (this *StreamWriteRequest) String() string { if this == nil { return "nil" } + repeatedStringForTraceContext := "[]*Header{" + for _, f := range this.TraceContext { + repeatedStringForTraceContext += strings.Replace(f.String(), "Header", "Header", 1) + "," + } + repeatedStringForTraceContext += "}" s := strings.Join([]string{`&StreamWriteRequest{`, `TenantID:` + fmt.Sprintf("%v", this.TenantID) + `,`, `Request:` + strings.Replace(this.Request.String(), "WriteRequest", "WriteRequest", 1) + `,`, + `TraceContext:` + repeatedStringForTraceContext + `,`, `MessageWithBufRef:` + fmt.Sprintf("%v", this.MessageWithBufRef) + `,`, `}`, }, "") @@ -5320,6 +5534,123 @@ func (m *MetadataV2) Unmarshal(dAtA []byte) error { } return nil } +func (m *Header) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCortex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Header: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCortex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCortex + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCortex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCortex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCortex + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCortex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCortex(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCortex + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthCortex + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *StreamWriteRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -5417,6 +5748,40 @@ func (m *StreamWriteRequest) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraceContext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCortex + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthCortex + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthCortex + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TraceContext = append(m.TraceContext, &Header{}) + if err := m.TraceContext[len(m.TraceContext)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 1000: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MessageWithBufRef", wireType) diff --git a/pkg/cortexpb/cortex.proto b/pkg/cortexpb/cortex.proto index f583804149a..e3d80a72183 100644 --- a/pkg/cortexpb/cortex.proto +++ b/pkg/cortexpb/cortex.proto @@ -117,9 +117,16 @@ message MetadataV2 { uint32 unit_ref = 4; } +message Header { + string Key = 1; + repeated string Values = 2; +} + message StreamWriteRequest { string TenantID = 1; WriteRequest Request = 2; + // TraceContext carries the tracing headers of the write request this message belongs to. + repeated Header TraceContext = 3; MessageWithBufRef Ref = 1000 [(gogoproto.embed) = true, (gogoproto.customtype) = "MessageWithBufRef", (gogoproto.nullable) = false]; //set intentionally high to keep WriteRequest compatible with upstream Prometheus } diff --git a/pkg/ingester/client/client.go b/pkg/ingester/client/client.go index 0604b0de7f7..5aad21ce1d1 100644 --- a/pkg/ingester/client/client.go +++ b/pkg/ingester/client/client.go @@ -11,6 +11,7 @@ import ( "time" "github.com/go-kit/log" + "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" @@ -115,6 +116,10 @@ func (c *closableHealthAndIngesterClient) PushStreamConnection(ctx context.Conte Request: in, } + if err := cortexpb.InjectSpanIntoStreamWriteRequest(opentracing.GlobalTracer(), opentracing.SpanFromContext(ctx), streamReq); err != nil { + return nil, err + } + job := &streamWriteJob{ req: streamReq, sendDone: make(chan struct{}), diff --git a/pkg/ingester/ingester.go b/pkg/ingester/ingester.go index 3a6c03449c6..f2b2887b829 100644 --- a/pkg/ingester/ingester.go +++ b/pkg/ingester/ingester.go @@ -1833,6 +1833,10 @@ func (i *Ingester) Push(ctx context.Context, req *cortexpb.WriteRequest) (*corte func (i *Ingester) PushStream(srv client.Ingester_PushStreamServer) error { ctx := srv.Context() + tracer := opentracing.GlobalTracer() + // Drop the span of the connection, which lives for as long as the connection does: + // requests are traced from the trace context carried by their own message. + baseCtx := opentracing.ContextWithSpan(ctx, nil) for { select { case <-ctx.Done(): @@ -1860,7 +1864,16 @@ func (i *Ingester) PushStream(srv client.Ingester_PushStreamServer) error { } } - pushCtx := user.InjectOrgID(ctx, req.TenantID) + pushCtx := user.InjectOrgID(baseCtx, req.TenantID) + + // Trace the push as part of its own write request, not of the connection it was + // sent on. Ignore errors: with no parent span we simply don't create one. + parentSpanContext, _ := cortexpb.GetParentSpanForStreamWriteRequest(tracer, req) + var requestSpan opentracing.Span + if parentSpanContext != nil { + requestSpan, pushCtx = opentracing.StartSpanFromContextWithTracer(pushCtx, tracer, "Ingester.PushStreamRequest", opentracing.ChildOf(parentSpanContext)) + } + resp, err := i.Push(pushCtx, req.Request) if resp == nil { resp = &cortexpb.WriteResponse{} @@ -1877,6 +1890,9 @@ func (i *Ingester) PushStream(srv client.Ingester_PushStreamServer) error { } err = srv.Send(resp) req.Free() + if requestSpan != nil { + requestSpan.Finish() + } if err != nil { level.Error(logutil.WithContext(ctx, i.logger)).Log("msg", "error sending from PushStream", "err", err) } diff --git a/pkg/ingester/pushstream_tracing_test.go b/pkg/ingester/pushstream_tracing_test.go new file mode 100644 index 00000000000..af6941b5511 --- /dev/null +++ b/pkg/ingester/pushstream_tracing_test.go @@ -0,0 +1,72 @@ +package ingester + +import ( + "context" + "os" + "testing" + + "github.com/opentracing/opentracing-go" + "github.com/opentracing/opentracing-go/mocktracer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "github.com/weaveworks/common/user" + + "github.com/cortexproject/cortex/pkg/cortexpb" +) + +// testTracer records the spans started by the tests. opentracing.SetGlobalTracer is an +// unsynchronized assignment and the ingesters keep reading the global tracer from their ring +// heartbeat, so it is registered once, before any test runs. +var testTracer = mocktracer.New() + +func TestMain(m *testing.M) { + opentracing.SetGlobalTracer(testTracer) + os.Exit(m.Run()) +} + +// streamWriteReqWithTrace builds a request carrying its own trace context, as the client does. +func streamWriteReqWithTrace(t *testing.T, tenantID, metricName string) (*cortexpb.StreamWriteRequest, int) { + t.Helper() + + span := testTracer.StartSpan("Distributor.Push") + + req := &cortexpb.StreamWriteRequest{TenantID: tenantID, Request: makeWriteReq(metricName)} + require.NoError(t, cortexpb.InjectSpanIntoStreamWriteRequest(testTracer, span, req)) + return req, span.Context().(mocktracer.MockSpanContext).TraceID +} + +// TestPushStream_TracesEachRequestSeparately checks that each push is traced as part of the +// write request it belongs to, and not of the connection it happened to arrive on. +func TestPushStream_TracesEachRequestSeparately(t *testing.T) { + testTracer.Reset() + ing := newTestIngester(t) + + // The interceptor puts the span of the connection in the stream context. + streamCtx := user.InjectOrgID(context.Background(), "ingester-127.0.0.1-9095-stream-push-worker-0") + streamSpan := testTracer.StartSpan("/cortex.Ingester/PushStream") + streamCtx = opentracing.ContextWithSpan(streamCtx, streamSpan) + + tracedReq, tracedTraceID := streamWriteReqWithTrace(t, "user-1", "metric_one") + // A client that predates this propagation carries no trace context. + legacyReq := &cortexpb.StreamWriteRequest{TenantID: "user-2", Request: makeWriteReq("metric_two")} + + srv := &pushStreamServer{ctx: streamCtx, requests: []*cortexpb.StreamWriteRequest{tracedReq, legacyReq}} + require.NoError(t, ing.PushStream(srv)) + + byTrace := map[int][]string{} + for _, span := range testTracer.FinishedSpans() { + byTrace[span.SpanContext.TraceID] = append(byTrace[span.SpanContext.TraceID], span.OperationName) + } + + // A push joins the trace of its own write request. + assert.Equal(t, []string{"Ingester.Push", "Ingester.PushStreamRequest"}, byTrace[tracedTraceID]) + + var parentless []*mocktracer.MockSpan + for _, span := range testTracer.FinishedSpans() { + if span.OperationName == "Ingester.Push" && span.ParentID == 0 { + parentless = append(parentless, span) + } + } + require.Len(t, parentless, 1) + assert.NotContains(t, byTrace, streamSpan.Context().(mocktracer.MockSpanContext).TraceID) +}